Find any FHIR R4 / SDC field and where to configure it in the builder UI.
| FHIR Field / Extension | Description | Where in UI | How to access |
|---|---|---|---|
| Questionnaire | |||
Questionnaire.title | Human-readable name displayed in the builder toolbar | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card |
Questionnaire.id | Logical resource ID | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Identifiers & Publication section |
Questionnaire.url | Canonical URL uniquely identifying this questionnaire | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Identifiers & Publication section |
Questionnaire.version | Business version string | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Identifiers & Publication section |
Questionnaire.name | Computer-friendly name (PascalCase, no spaces) | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Identifiers & Publication section |
Questionnaire.status | Publication lifecycle status: draft / active / retired / unknown | Questionnaire card — status badge | Click the status badge in the Questionnaire card |
Questionnaire.experimental | Marks this as a test resource, not for production use | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Identifiers & Publication section |
Questionnaire.date | Date this version was published | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card |
Questionnaire.publisher | Name of the organisation that published this questionnaire | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card |
Questionnaire.description | Natural language description of the questionnaire | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card |
Questionnaire.purpose | Why this questionnaire was created | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Purpose & Copyright section |
Questionnaire.copyright | Use and publishing restrictions | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Properties → Advanced → Copyright (a third-party template adds its license here when inserted) |
Questionnaire.copyrightLabel | Short (<50 char) copyright string for a page footer (e.g. "All rights reserved"). R5 native field; on R4/R4B export written as the official artifact-copyrightLabel extension; read from either form on import. | Questionnaire Properties modal → Advanced section | Click 'Edit' → expand Advanced → Copyright Label field |
Questionnaire.versionAlgorithm[x] | Mechanism used to compare versions (semver / integer / alpha / date / natural, or a custom FHIRPath string). R5 native field; on R4/R4B export written as the official artifact-versionAlgorithm extension; read from either form on import. | Questionnaire Properties modal → Advanced section | Click 'Edit' → expand Advanced → Version Algorithm dropdown (pick a code, or Custom expression for a FHIRPath string) |
Questionnaire.approvalDate | When approved by the publisher | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Lifecycle Dates section |
Questionnaire.lastReviewDate | When content was last reviewed | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Lifecycle Dates section |
Questionnaire.effectivePeriod | Period when the questionnaire is expected to be in active use | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Lifecycle Dates section |
Questionnaire.subjectType | Resource type the questionnaire collects data about (e.g. Patient) | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card |
Questionnaire.language | BCP-47 language code for the resource content | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card |
Questionnaire.derivedFrom | Canonical URL(s) this questionnaire is based on | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Relationships section |
Questionnaire.replaces | Canonical URL(s) of questionnaires this one replaces | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Replaces section |
Questionnaire.identifier[] | Business identifiers (system + value + use) for the questionnaire | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Identifiers section |
Questionnaire.contact[] | Contact details for the publisher (name + telecom rows) | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Contact section |
Questionnaire.useContext[] | Clinical context the questionnaire is intended for (pass-through — no editing UI) | Questionnaire Properties modal | Preserved on import and re-exported unchanged; no editing UI |
Questionnaire.implicitRules | URI declaring the set of rules the resource was authored against. Servers that do not understand the rules MUST reject the resource. | Questionnaire Properties modal → Resource Meta section | Click 'Edit' in the Questionnaire card → expand Resource Meta → enter URI in Implicit Rules field |
Questionnaire.jurisdiction[] | Jurisdictions (system / code / display) this questionnaire applies to | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Jurisdiction section |
Questionnaire.meta (versionId / source / lastUpdated / profile / tag / security) | Resource metadata: versionId, source URI, lastUpdated timestamp, profiles, security and tag codings | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Resource Meta section |
Questionnaire.extension[builder-target-version] | Target FHIR version (R4 / R4B / R5) the questionnaire was authored for, recorded as a valueCode (4.0.1 / 4.3.0 / 5.0.0). FHIR's Meta type has no fhirVersion field, so the builder stores the version in this extension and reads it back on import. Also auto-detected from version-specific fields (disabledDisplay or answerConstraint → R5). | Logic Builder — FHIR version selector | Pick the version in the selector next to the Logic Builder title; it is stamped on export |
Questionnaire.text (narrative) | Human-readable narrative summary; auto-generated on export; shown read-only in the Advanced section | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Advanced section (read-only) |
Questionnaire.contained[] | Inline resources (e.g. ValueSets) bundled with the questionnaire | Contained panel — left panel | In the Contained section (left panel): '+ Add' to paste a FHIR resource JSON; use the pencil to edit or ✕ to remove. Give it an id to reference it from items via #id |
variable (extension) | FHIRPath variables scoped to the whole questionnaire (SDC) | Variables panel — left panel | Scroll to the Variables section in the left panel |
preferredTerminologyServer (Questionnaire-level, core extension) | Default FHIR terminology server URL for ValueSet expansion across all items (overridden per-item) | Questionnaire Properties modal | Click 'Edit' in the Questionnaire card → Default Terminology Server field |
sdc-questionnaire-launchContext | Declares the context resources (patient, user, encounter, …) a server must supply when running $populate. Each entry has a name coding, resource type(s) and optional description. | Questionnaire Properties modal → Launch Context section | Click 'Edit' in the Questionnaire card → Launch Context → add a context (preset or custom name, type, description) |
Questionnaire.modifierExtension[] | Root-level modifier extensions that change the meaning of the resource. Preserved verbatim on import/export; the builder does not interpret them, and the validator emits a warning when any are present (FHIR R4 §2.6.2.2). | Preserved round-trip; Validate modal warns | Imported and re-exported unchanged; run Tools → Validate to see the warning |
cqf-library | Canonical reference to a CQL Library. When it resolves to a "#id" contained Library carrying embedded precompiled ELM (application/elm+json content), it is executed client-side (cql-execution + cql-exec-fhir) to answer any item's text/cql-identifier initialExpression. External (non-contained) canonical Library URLs are preserved on round-trip but not resolved. | Contained Resources panel to add the Library; import/sample-data to set the extension | Add a Library resource (with content[application/elm+json]) via the Contained Resources panel, then import/edit the cqf-library extension to "#" + its id. See sampledata → CQL Execution Demo. |
| Item — Core | |||
item.linkId | Unique identifier for the item within the questionnaire tree | Item row — ID badge | Visible as a small badge on each item; click the badge to edit |
item.text | Primary label shown to the user filling the form | Item row — title field | Click the item title directly to edit inline |
item.type | Data type of the answer: boolean, string, integer, decimal, date, choice, reference, attachment, quantity, display, etc. | Answer Type modal | Click "Answer Type" action link on the item row |
item.required | Whether an answer is mandatory | States modal | Click "States" action link on the item row |
item.repeats | Whether the item can be answered more than once (multi-row input) | States modal | Click "States" action link → Repeatable toggle |
item.readOnly | Whether the answer cannot be changed by the user | States modal | Click "States" action link → Read-only toggle |
item.prefix | Short label prefix displayed before the item text (e.g. "1.", "a.") | Item row — inline | Small "prefix" input inline in the item row (next to the title) |
item.maxLength | Maximum allowed character count for text / string / url answers | — not editable in builder | Preserved on import; not editable in the builder UI |
item.answerOption[] | Fixed list of answer choices. All six FHIR value[x] types supported: valueCoding (code+display+system), valueString, valueInteger, valueDate, valueTime, valueReference. Non-Coding types are preserved on import/export and are fully editable via the Type column in the Options editor. | Answer Type modal → Options editor | Click "Answer Type" → select "Options" source → use the Type column to set value[x] type per row; edit Code / Label / Score / Prefix as needed |
item.answerValueSet | URL of a ValueSet that provides the answer choices | Answer Type modal → ValueSet source | Click "Answer Type" → select "ValueSet" source → enter the ValueSet URL |
item.initial[] | Default answer value(s) pre-filled before user interaction | Default Value modal | Click "Default" action link on the item row |
item.enableWhen[] | Conditions under which this item is visible / enabled. Supports all answer types including quantity (compared by value, with an optional unit match for = / ≠). | Show When modal | Click "Show When" action link on the item row |
item.enableBehavior | How multiple enableWhen conditions are combined: all (AND) or any (OR) | Show When modal | Click "Show When" → AND / OR selector at the top of the modal |
item.disabledDisplay | How to show items when their enableWhen condition is false, in patient view: 'hidden' removes the item; 'protected' shows it greyed-out. In the builder/design preview every disabled item is always shown dimmed so the author sees the full form. R5 native field; on R4/R4B export it is downgraded to a builder-private extension. | States modal | Click "States" → Disabled Display dropdown |
item.definition | URL pointing to an ElementDefinition that provides additional meaning. Can be resolved against an uploaded StructureDefinition to auto-fill text, type, and constraints. | Item Properties modal | Click "Props" action link on the item → Definition field. Then click "Resolve from profile…" and upload a StructureDefinition (JSON) to auto-fill text, type, and value constraints for the referenced element — runs client-side, no server required. Try it with the bundled sampledata/patient-profile.sd.json against sampledata/reference-example.fhir.json. |
| Item — Extensions | |||
item.extension[questionnaire-baseType] | Base FHIR type for items derived from an ElementDefinition (e.g. string, HumanName) | Item Properties modal | Click "Props" action link → Base Type field |
item.extension[questionnaire-fhirType] | Specific FHIR type for complex elements derived from an ElementDefinition (e.g. HumanName, ContactPoint) | Item Properties modal | Click "Props" action link → FHIR Type field |
| Item — Core | |||
item.code[] | Formal coding identifiers for the item (e.g. LOINC code) | Item Properties modal | Click "Props" action link on the item → Codes section. Use "Search LOINC / SNOMED / ICD-10-CM…" to autocomplete codes: LOINC and ICD-10-CM via NLM Clinical Tables API (free, no key needed); SNOMED CT via public FHIR terminology server (tx.fhir.org). LOINC Terms of Use acceptance required on first use. SNOMED CT use is subject to SNOMED International licensing — free in member countries, fee-based otherwise. ICD-10-CM is a US public-domain terminology. |
| Item — Extensions | |||
rendering-style | Inline CSS to apply to the rendered item text (bold, colour, etc.) | Appearance modal | Click "Appearance" action link on the item row |
rendering-xhtml | XHTML markup shown instead of plain item.text when the client supports rich rendering | Appearance modal | Click "Appearance" action link on the item row |
entryFormat | Placeholder hint shown inside the input field (e.g. "MM/DD/YYYY") | Answer Type modal | Click "Answer Type" action link → Placeholder hint field |
minLength | Minimum number of characters required for string / text / url answers | — not editable in builder | Preserved on import; not editable in the builder UI |
minValue / maxValue | Minimum and maximum numeric or date constraint on the answer value | Answer Type modal | Click "Answer Type" action link → Min / Max value fields (integer / decimal items only). date / dateTime / time bounds are preserved on import and export but not editable in the builder UI |
questionnaire-sliderStepValue | Step increment for slider rendering of integer / decimal items. R4 exports valueInteger only; decimal step values are rounded to integer and flagged by the local validator. | Answer Type modal | Click "Answer Type" action link → Slider step field (integer / decimal items only) |
rendering-markdown | Markdown-formatted alternative to item.text. Rendered in preview; rendering-xhtml takes priority if both are set. | Appearance modal | Click "Appearance" action link on the item row → Markdown section |
questionnaire-hidden | Hides the item from the patient UI; item still participates in calculations | States modal | Click "States" action link → Hidden toggle |
sdc-questionnaire-collapsible | Renders a group as a collapsible section in patient view: default-open starts expanded but collapsible, default-closed starts collapsed. Groups only. | States modal (groups only) | Click "States" action link on a group → Collapsible select |
questionnaire-supportLink | One or more URIs linking to supporting information for this item | Item Properties modal | Click "Props" action link on the item → Support Links section |
questionnaire-constraint | FHIRPath invariant constraints: expression + human-readable message + severity | Constraint modal | Click "Constraint" action link on the item row |
ordinalValue (on answerOption) | Numeric score / weight assigned to a specific answer option | Answer Type modal → Options editor → Score column | Click "Answer Type" → edit the Score column in the options table |
valueCoding.system (on answerOption) | Code system URI for a specific answer option, e.g. http://loinc.org. Eliminates FHIR validator warnings about codes with no system. | Answer Type modal → Options editor → System column | Click "Answer Type" → enter system URI in the System column for each option |
questionnaire-optionPrefix (on answerOption) | Display prefix shown before a specific answer option label (e.g. "A.", "1.") | Answer Type modal → Options editor → Prefix column | Click "Answer Type" → edit the Prefix column in the options table |
questionnaire-itemControl (radio-button) | Renders a choice item as a vertical radio button list | Answer Type modal | Click "Answer Type" → select item type "radio" |
questionnaire-itemControl (check-box) | Renders a choice item as a multi-select checklist of checkboxes | Answer Type modal | Click "Answer Type" → select item type "checklist" |
questionnaire-itemControl (autocomplete) | Adds a searchable filter input to the dropdown for choice items | Answer Type modal | Click "Answer Type" → Autocomplete checkbox (select type only) |
questionnaire-itemControl (drop-down) | Explicitly marks a choice item as a dropdown (default rendering) | Answer Type modal | Imported and round-tripped; select type is drop-down by default |
questionnaire-itemControl (text-area) | Renders a string/text item as a multi-line textarea | Answer Type modal | Click "Answer Type" → Multi-line checkbox (text type only) |
questionnaire-itemControl (text-box) | Explicitly marks a string/text item as a single-line text box (default rendering) | Answer Type modal | Imported and round-tripped; text type is text-box by default |
questionnaire-itemControl (spinner) | Marks an integer/decimal item with the spinner control hint | Answer Type modal | Imported and round-tripped; preserved on export |
questionnaire-itemControl (slider) | Renders an integer/decimal item as a range slider; requires a step value | Answer Type modal | Click "Answer Type" → Slider toggle (integer / decimal items only); step value required |
questionnaire-itemControl (lookup) | Renders a choice item as a live-search input that queries a FHIR terminology server | Answer Type modal | Click "Answer Type" → Lookup checkbox (select type with ValueSet URL only) |
questionnaire-itemControl (flyover) | Hides a display item’s text inline and reveals it as a hover tooltip (an ⓘ marker). Useful for optional help that should not clutter the form. | Answer Type modal | Click "Answer Type" on a display item → Display control → Flyover |
questionnaire-itemControl (help) | Hides text behind a "? Help" button; the text is revealed only when the button is clicked (the FHIR "Help-Button" control). On a question or group this is a plain Help Text field — the nested display item is synthesized/collapsed automatically. A standalone display item (no specific question) still uses its own Display control setting. | Item Properties (Props) modal, or Answer Type modal for a standalone display item | Click "Props" on any question or group → Help Text field. Or, for a standalone display item: "Answer Type" → Display control → Help button |
questionnaire-itemControl (header / footer) | Group display bands: header renders the group as a prominent top band (kept visible at the top); footer renders it as a muted bottom band. Group-level codes in the FHIR item-control code system. | Appearance modal (groups only) | Click "Appearance" on a group → Group display → Header or Footer |
questionnaire-itemControl (gtable) | Renders a group as an HTML table: each child item becomes a column header, each repeat instance (or a single row for non-repeating groups) becomes a data row. Nested groups inside cells use their own itemControl (stacked default or nested gtable — recursive). Required children show an asterisk in the header. A GTABLE badge appears in the builder preview. | Preview only (import/export) | Set questionnaire-itemControl = gtable on a group in your FHIR JSON and load it. Use the gtable-demo.fhir.json sample from the library. |
questionnaire-itemControl (atable) | Renders a radio-button or checkbox question as a table with one row (the question) and one column per permitted answer, instead of a vertical list. On import, a non-repeating choice item becomes radio, a repeating one becomes checklist. | Answer Type modal — radio/checklist items | Click "Answer Type" on a radio or checklist item → "Answer table (options as columns)" checkbox. Sample: item-control-demo.fhir.json in the library. |
questionnaire-referenceResource | Resource type(s) that are valid targets for reference items. A reference answer whose type differs from the allowed type fails preview validation with an inline "Expected {Type}" error. | Answer Type modal — reference items | Click "Answer Type" when type is reference → Resource Type dropdown. Or use Props → "Resolve from profile…" to derive the allowed type from the element's Reference targetProfile. |
questionnaire-referenceFilter | FHIRPath expression to filter valid reference targets at runtime | Answer Type modal — reference items | Click "Answer Type" when type is reference → Reference filter textarea |
questionnaire-referenceProfile | Profile URL(s) that restrict valid resource types for reference items | Answer Type modal — reference items | Click "Answer Type" when type is reference → Reference profiles textarea (one URL per line) |
questionnaire-signatureRequired | Indicates that a digital signature of the specified type is required. ValueCodeableConcept with Signature Type Codes binding. | States modal | Click "States" → Signature required chip selector |
maxSize (attachment) | Maximum allowed file size in MB for attachment items | Answer Type modal | Click "Answer Type" action link → Max File Size field (attachment items only) |
mimeType (attachment) | Allowed MIME type(s) for attachment items | Answer Type modal | Click "Answer Type" action link → Allowed MIME types field (attachment items only) |
minOccurs / maxOccurs | Minimum and maximum number of repetitions for repeating items | Repeatable modal | Click "Repeatable" action link → Min / Max Occurrences fields |
maxDecimalPlaces | Maximum number of decimal places for decimal items; enforced in preview with error badge | Answer Type modal | Click "Answer Type" action link → Decimal places field (decimal items only) |
questionnaire-choiceOrientation | Controls layout of radio button groups: vertical (stacked) or horizontal (inline) | Answer Type modal | Click "Answer Type" → Orientation select (radio items only) |
| Item — SDC | |||
sdc-questionnaire-columnCount | Recommends laying out a choice question’s answer options across N columns (vertical-first fill). positiveInt. Per SDC valid on any choice item; editable and round-tripped for all choice types. This preview applies the visual column layout to inline option lists (radio / check-box) only. | Answer Type modal | Click "Answer Type" → Option columns select (any choice item) |
| Item — Extensions | |||
questionnaire-displayCategory | Visual category applied to display items: instructions, security, or help (collapsible). R4: only valid on group items; suppressed on display items in export (local validator warns). R5 allows it on display items. | Answer Type modal | Click "Answer Type" → Category select (display items only) |
questionnaire-unitValueSet | Canonical URL of a ValueSet containing selectable UCUM units for quantity items. When set, the unit dropdown is populated from this ValueSet (falls back to built-in UCUM list if expansion unavailable). | Answer Type modal → Unit ValueSet URL field | Open Answer Type modal on a quantity item → enter the ValueSet canonical URL |
| Item — SDC | |||
sdc-questionnaire-calculatedExpression | FHIRPath expression evaluated continuously; its result is written into the item answer (read-only computed field) | Expression modal | Click "Expression" action link on the item → Calculated Expression (type FHIRPath, or use "🧩 Build…" for a visual value builder) |
sdc-questionnaire-initialExpression | FHIRPath expression evaluated once on form load to pre-populate the item. Also supports language text/cql-identifier (a CQL define name), resolved against the questionnaire's cqf-library extension — import/sample-data only, not authorable in this modal. | Expression modal | Click "Expression" action link on the item → Initial Expression (type FHIRPath, or use "🧩 Build…" for a visual value builder) |
sdc-questionnaire-enableWhenExpression | FHIRPath expression used instead of enableWhen[] rules to control item visibility | Show When modal | Click "Show When" action link → enableWhenExpression field (type FHIRPath, or use "🧩 Build…" for a visual condition builder) |
sdc-questionnaire-answerExpression | FHIRPath expression evaluated at render time to dynamically produce the answer option list | Answer Type modal → Expression source | Click "Answer Type" → select "Expression" source → enter a FHIRPath expression |
sdc-questionnaire-candidateExpression | FHIRPath expression evaluated at render time to produce candidate/suggested answers (mutually exclusive with answerExpression and static answerOption[]) | Answer Type modal → Candidate source | Click "Answer Type" → select "Candidate" source → enter a FHIRPath expression |
| Item — Extensions | |||
questionnaire-hidden | Hides the item from the patient UI (core extension; the older sdc-questionnaire-hidden address is also read) | States modal | Click "States" action link → Hidden toggle |
| Item — SDC | |||
sdc-questionnaire-isSubject | Marks the item whose answer identifies the subject of the QuestionnaireResponse (QuestionnaireResponse.subject). Only one item per questionnaire may be the subject; a SUBJECT badge is shown in the builder preview. Has no effect on the patient-facing control. | States modal | Click "States" action link → Is subject toggle |
sdc-questionnaire-observationExtract | Flags an item or group for SDC Observation-based extraction. Each coded answer beneath an enabled item is extracted as an Observation (status final; code from item.code; Quantity when questionnaire-unit is set). The flag is inherited by descendants; an explicit false suppresses an inherited true. A flag on an individual item.code extracts (or, if false, leaves out) just that code, and sdc-questionnaire-observation-extract-category (questionnaire or item, nearest wins) sets Observation.category — both are kept on import/export but not editable here. Run via Save → Observations · FHIR JSON Bundle. | States modal | Click "States" action link → "Extract as Observation" dropdown (Inherit / Yes / No); export via Save ▾ → Observations · FHIR JSON Bundle → fill Subject/Author/QR ID → Apply |
sdc-questionnaire-designNote | Internal developer / designer note attached to an item; not shown to patients | Design Note modal | Click "Note" action link on the item row |
sdc-questionnaire-openLabel | Custom placeholder label for open-choice items (replaces default "Choose or type…") | Answer Type modal | Click "Answer Type" → Open label field (open-choice items only) |
| Item — Extensions | |||
preferredTerminologyServer (core extension) | Per-item preferred FHIR terminology server URL for ValueSet expansion. Overrides the Questionnaire-level default. | Terminology modal | Click "Terminology" action link on the item row → enter server URL |
| Item — SDC | |||
sdc-questionnaire-shortText | Abbreviated item label shown in summary views and narrow-screen layouts. Shown as a small blue badge in the builder preview row. | Props modal → Short Text field | Click "Props" action link → enter Short Text |
sdc-questionnaire-choiceColumn | Multi-column layout for choice/open-choice dropdowns. Each column shows a property of the option (code, display, system). The forDisplay column controls which value appears in the trigger after selection. | Answer Type modal → Choice columns section | Click "Answer Type" → add columns with path, label, optional width, and forDisplay flag (choice/open-choice items) |
| Item — Extensions | |||
questionnaire-unitOption | Explicit list of selectable UCUM units for quantity items. Each extension entry defines one allowed unit (system, code, display). When set, only these units appear in the dropdown. | Answer Type modal → Unit options section | Click "Answer Type" on a quantity item → add unit entries with code, display, and system |
regex | Regular expression pattern that the answer value must match. Shown as a validation error in the preview when the entered value does not match. | Answer Type modal → Regex validation pattern | Click "Answer Type" on a text/url item → enter regex pattern |
questionnaire-optionExclusive (on answerOption) | Marks an answer option as exclusive: selecting it in a checklist deselects all other options (e.g. "None of the above"). | Answer Type modal → Options editor → Excl column | Click "Answer Type" → toggle the Excl checkbox in the options table |
questionnaire-usageMode | Controls when the item is shown: capture (data entry only), display (read-only viewing only), display-non-empty (display only if answered), capture-display (both), capture-display-non-empty (capture always, display only if answered). Items with display/display-non-empty are hidden in patient view. | States modal → Usage mode dropdown | Click "States" button → select mode from dropdown |
sdc-questionnaire-itemMedia | Attaches a media file (image, audio, video) to the question. The media is displayed inline in the preview before the answer control. Only http(s) and data: image/audio/video URLs are loaded. | Answer Type modal → Item media URL | Click "Answer Type" → enter media URL and content type |
itemWeight (on answerOption) | Scoring weight for an individual answer option. Used for advanced scoring beyond ordinalValue. | Answer Type modal → Options editor → Weight column | Click "Answer Type" → enter weight value in the Weight column |
sdc-questionnaire-itemAnswerMedia (on answerOption) | Attaches a media file to a specific answer option. The media is shown inline next to the option label. | Imported and exported only (no inline editor) | Must be added via JSON import; preserved on round-trip |
answerConstraint (R5 native) | Constrains how answer values are validated: optionsOnly — only coded options; optionsOrType — option or any value of the answer type; optionsOrString — option or free-text string. R5 native field; on R4/R4B export it is downgraded to a builder-private extension. | Answer Type modal → Answer Constraint dropdown | Click "Answer Type" on a choice/open-choice item → set Answer Constraint |
| QR Export | |||
QuestionnaireResponse.status | Completion status of the response (in-progress, completed, amended, etc.) | Export → QuestionnaireResponse modal → Status field | Open Export menu → QuestionnaireResponse → pick status |
QuestionnaireResponse.subject | Patient or subject the response is about (FHIR reference string) | Export → QuestionnaireResponse modal → Subject field | Enter a reference string, e.g. Patient/123 |
QuestionnaireResponse.author | Author of the response (FHIR reference string) | Export → QuestionnaireResponse modal → Author field | Enter a reference string, e.g. Practitioner/7 |
QuestionnaireResponse.authored | Auto-set to current UTC timestamp on every export | Automatic | Set automatically — no user input needed |
QuestionnaireResponse.id | Resource logical id of the exported QR resource | Export → QuestionnaireResponse modal → Resource ID field | Enter any string; leave blank to omit |
QuestionnaireResponse.language | BCP-47 language code for the response content | Export → QuestionnaireResponse modal → Language field | Enter language code, e.g. en, de, nl |
QuestionnaireResponse.meta.versionId | Version identifier for the response resource | Export → QuestionnaireResponse modal → Version ID field | Enter manually or click Generate to create a UUID |
QuestionnaireResponse.meta.source | URI identifying the source system that created the resource | Export → QuestionnaireResponse modal → Meta Source field | Enter a URI |
QuestionnaireResponse.meta.lastUpdated | Auto-set to current UTC timestamp on every export | Automatic | Set automatically — no user input needed |
QuestionnaireResponse.meta.profile[] | Canonical URLs of profiles this response claims to conform to | Export → QuestionnaireResponse modal → Profiles section | Click "+ Add Profile URL" and enter canonical URL(s) |
| SDC Server | |||
sdc-questionnaire-definitionExtract | Marks a group item as an extraction context. All child items with item.definition will be extracted into a FHIR resource of the type specified in the definition URL (e.g. StructureDefinition/Patient#Patient.name.family). The element type and cardinality are taken from the R4 model (a coded answer becomes a CodeableConcept / Coding / code as needed, repeating elements are lists, single-valued ones are not); a group with a definition is one element per response instance; answers nested under answers are extracted; repeating extract groups produce one resource per instance. The extension parameters definition (profile), fullUrl, ifNoneMatch, ifMatch, ifNoneExist and ifModifiedSince are used for the Bundle entry; no resource id is invented. | Builder: add extension via import; Save ▾ → Definition Extract to run extraction | Import a questionnaire with definitionExtract groups, fill answers, then Save ▾ → Definition Extract · FHIR JSON Bundle → Download. |
sdc-questionnaire-definitionExtractContext | Alternative marker for a group that is an extraction context; treated like definitionExtract by the client-side Definition Extract (a name that does not exist in SDC 4.0; the retired itemExtractionContext is accepted the same way, presence only). | Builder: add extension via import; Save ▾ → Definition Extract to run extraction | Import a questionnaire with the extension on a group; extraction behaves as with definitionExtract. |
sdc-questionnaire-itemContext / itemPopulationContext | FHIRPath/query contexts for server-side population. Preserved on import and written back on export; not evaluated client-side. | — not editable in builder | Preserved on import/export only. |
sdc-questionnaire-targetStructureMap | Canonical reference to a FHIR StructureMap (Mapping Language) that transforms a QuestionnaireResponse into other FHIR resources. Executed entirely in the browser via the fhir-structuremap-js engine — no server required. Only a "#id" reference to a StructureMap added via the Contained Resources panel can be resolved (no server to fetch an external canonical URL). | Properties → Target StructureMap field; Contained Resources panel to add the StructureMap; Save ▾ → StructureMap Extract to run it | Add a StructureMap resource via the Contained Resources panel, set Properties → Target StructureMap to "#" + its id, fill in answers, then Save ▾ → StructureMap Extract · FHIR JSON Bundle → Download. |
sdc-questionnaire-sourceStructureMap | Canonical reference to a FHIR StructureMap (Mapping Language) that transforms a resource fetched from the FHIR Base Server (e.g. Patient) into a QuestionnaireResponse to pre-fill answers. Executed entirely in the browser via the fhir-structuremap-js engine — only the resource fetch needs the server, no server-side $populate support required. Only a "#id" reference to a StructureMap added via the Contained Resources panel can be resolved (no server to fetch an external canonical URL). | Properties → Source StructureMap field; Contained Resources panel to add the StructureMap; Answers ▾ → Fill via StructureMap to run it | Add a StructureMap resource via the Contained Resources panel, set Properties → Source StructureMap to "#" + its id, then Answers ▾ → Fill via StructureMap…, search for a patient, and click Run StructureMap. Answers are merged into the current form. |
Questionnaire/$populate | Sends the current Questionnaire to a FHIR server's $populate operation to pre-fill answers from a patient record. Requires an SDC-capable server (FHIR Base Server, or SDC Server if set) configured in Settings. | Answers ▾ → "↧ Fill from FHIR Server…" (enabled when a questionnaire is loaded) | Open Answers ▾ → Fill from FHIR Server, search for a patient by name or type a Patient reference (e.g. Patient/123), then click "Fill from Server". Answers are merged into the current form. |
| Translation | |||
Questionnaire translation (machine translation) | Auto-translates all item labels, answer option displays, and UI strings into a target language using a machine-translation provider configurable in Settings → Translation API (Google Translate free, DeepL, LibreTranslate or OpenAI). Translations are stored in FHIR-standard _text.extension[translation] extensions. Items with rendering-xhtml preserve HTML formatting in the translated text. A language switcher in the header lets you preview the questionnaire in any translated language. | Settings ▾ → "🌐 Translate questionnaire…" | Open Settings ▾ → Translate questionnaire…, select a target language, click "Translate". Review and edit results in the table, then click "Apply translations". Switch the active language via the language button that appears in the header. |
Edit existing translations | Opens the translation review table pre-filled with stored translations, without calling the API. Allows manual editing of individual translations and adds empty rows for any new items added since the last translation. | Settings ▾ → "🌐 Translate questionnaire…" → select an already-translated language | Open Settings ▾ → Translate, select a language that already has translations — an "Edit existing" button appears. Click it to open the review table with existing translations pre-filled. |
http://hl7.org/fhir/StructureDefinition/translation | Standard FHIR translation extension. Used on _text.extension (item labels), _title.extension (questionnaire title), and answerOption._valueCoding._display.extension (option labels). Each extension carries lang (valueCode) and content (valueString). | Generated automatically on export when translations exist | Translations are written automatically on export. Import a FHIR file with these extensions to pre-populate the translation store. |
http://fhir-qb.app/StructureDefinition/ui-translations | App-specific extension storing UI string translations (AND/OR separators, "+ Add another", "More info ↗", select placeholder). Stored as JSON on the root Questionnaire extension[]. | Automatic (generated on export when UI strings are translated) | Included automatically in the export when UI string translations exist. |
http://fhir-qb.app/StructureDefinition/xhtml-translations | App-specific extension storing per-language XHTML translations for items that use rendering-xhtml. HTML tags are preserved by Google Translate. Rendered via innerHTML + DOMPurify. Stored as JSON on the root Questionnaire. | Automatic (generated on export when XHTML items have translations) | Included automatically in the export when items with rendering-xhtml have been translated. |
| Questionnaire | |||
Check my form (calculated results) | Tries generated answer combinations on every calculated value and lists text results that no answers can produce (for example a severity band whose threshold was moved), questions whose Show When rule is never met, calculations that never produce a value, and calculations that could not be checked (a multiple-choice list); dates are tried around today (±1 day … ±50 years, 100 years back) and a number without minimum and maximum with 1 to 100. Runs in the browser and changes nothing. A report page shows the formula and results of each calculated field, prints as a short summary and downloads every answer combination as CSV. The same page can check a Questionnaire file or pasted JSON without opening it in the builder, send it to the builder with Open in builder, and save a reference file (the questionnaire plus every answer combination with its calculated values, as one FHIR Bundle). A saved reference file can later be compared with an edited form: every calculation is run on the same answers and reported as unchanged, changed, removed or new. | Settings ▾ → "✅ Check my form…" | Open Settings ▾ → Check my form…. Problems are listed first; use the ↗ button on a row to jump to that calculation in the builder, or "Open full report" for the printable list. |
| REDCap | |||
Import from REDCap CSV | Converts a REDCap Data Dictionary CSV export into a FHIR R4 Questionnaire. Supports field types: text, notes, radio, checkbox, dropdown, yesno, truefalse, slider, file, calc, descriptive, sql. Forms become groups; section headers become nested groups. Branching logic is converted to enableWhen[] rules. All REDCap-specific values (branching string, calc expression, matrix group, alignment, etc.) are preserved as round-trip extensions under the http://fhir-qb.app/redcap/ namespace. | Questionnaires ▾ → From file… → format picker → REDCap CSV — Data Dictionary | Click "Questionnaires ▾" → "From file…", choose a .csv file and pick the REDCap format. If validation errors are found a Compatibility Report modal is shown; warnings allow import to proceed. |
Export to REDCap CSV | Exports the current questionnaire as a REDCap Data Dictionary CSV. For questionnaires originally imported from REDCap CSV the export is lossless (round-trip via stored extensions). For questionnaires built from scratch or imported from FHIR a best-effort conversion is performed. A Compatibility Report modal is shown when the questionnaire contains constructs that cannot be represented in REDCap (deep nesting, answerValueSet by URL, SDC expressions, reference/quantity types, etc.). | Save ▾ → Questionnaire · FHIR JSON → format picker → REDCap CSV | Click "Save ▾" → "Questionnaire · FHIR JSON" and pick the REDCap CSV format. If compatibility issues exist a report modal opens with "Export anyway" to proceed. |
| StructureDefinition | |||
Generate draft from StructureDefinition | Generates a full draft Questionnaire tree from a FHIR StructureDefinition/profile in one step, entirely client-side (no server). BackboneElement fields become nested groups; leaf fields become items with type, text, required/repeats, and item.definition set so the existing per-item "Resolve from profile" can re-sync a field later. Profile slicing generates a separate item per slice (alongside the base element); multi-type elements (e.g. value[x]) explode into one item per type, FHIR-named (e.g. deceasedBoolean, deceasedDateTime) — reported informationally in a warnings modal since only one variant should be filled in. | Questionnaires ▾ menu → From file… → format picker → FHIR StructureDefinition (.json) | Click "Questionnaires ▾" → "From file…", select "FHIR StructureDefinition (.json) — generate draft" in the format picker, then choose a StructureDefinition JSON file. Review any warnings, then hand-tune the generated skeleton (visibility conditions, calculated fields, etc.). |
| Preview — Accessibility | |||
Accessible preview rendering | The rendered questionnaire preview meets WCAG 2.0 A/AA basics: every form control gets an accessible name (aria-label derived from its item text when no visible label is associated), and interactive badges (item prefix, "optional") meet minimum colour-contrast. Intentionally dimmed inactive rows (enableWhen not met) are exempt. Enforced by an automated accessibility check in the e2e suite (tests/e2e/a11y.spec.js). | Right-hand Preview panel | Automatic — no configuration needed. Screen readers announce each control by its item text. |
| Accessibility — Keyboard & Focus | |||
Dialog focus management | Modals are exposed as role="dialog" with aria-modal; opening a modal moves focus into it, Tab is trapped inside the dialog, and closing (Apply/Cancel/Escape) returns focus to the control that opened it. Builder action links (Props, States, Constraint, etc.) are keyboard-accessible (role=button, tabindex, Enter/Space). | All modals + builder item action links | Automatic — open any modal with the keyboard, Tab through it, press Escape to close and return focus. |
Accessible dropdowns (custom-select) | Custom dropdowns expose combobox/listbox/option ARIA roles with aria-expanded and aria-selected, so screen readers announce them correctly. All preview dropdowns — the shared custom-select and the choice-item select — support full keyboard navigation: Arrow Up/Down move the highlighted option (aria-activedescendant), Enter selects, Home/End jump, Escape closes. | Preview choice selects, reference type, unit, and all modal dropdowns | Automatic — focus a dropdown and use Arrow keys + Enter, or Escape to close. |
Validation announcements (aria-live) | Inline validation errors are exposed as assertive alert regions (role=alert / aria-live=assertive) and the PASS/FAIL status badge is a polite live region (aria-live=polite), so screen readers announce validation state as it changes. | Preview control errors + PASS/FAIL status badge | Automatic — errors and status changes are announced by assistive tech. |
Keyboard-operable builder tree | Left-panel builder nodes are fully keyboard-operable: the node title (click-to-edit) is a role=button opened with Enter/Space; collapse toggles are native buttons; the ⚙ gear button exposes aria-haspopup/aria-expanded and its menu items are role=menuitem, reachable by Tab and activated with Enter/Space (Escape closes and returns focus). | Builder tree (left panel) | Automatic — Tab to a node, press Enter on the title to edit, open the gear menu and use Enter/Escape. |