Survey
The survey modality is a PRISM extension for handling complex questionnaires. It treats surveys as rich data with detailed metadata, rather than simple phenotypic variables.
[!TIP] Starting a new survey? Use the Survey Import Template to define your variables in Excel. It includes a Help sheet explaining all options.
Import Template Layout
The Excel import template is split into dedicated sheets:
Items: item-level columns (ItemID,Description,Scale,Session,Run, etc.)General: transposed survey-level metadata withField+Valuerows (OriginalName_*,Version_*,Instructions_*, citation, i18n settings, etc.)Help: quick reference for column semantics and examples
The importer merges these sheets automatically.
In General, rows marked red in the Required column indicate schema-critical metadata entries.
Multilingual Columns
For multilingual templates, use language suffix columns:
Description_<lang>andScale_<lang>for item text and levelsOriginalName_<lang>,Version_<lang>,Instructions_<lang>,Construct_<lang>,StudyDescription_<lang>for survey metadata
Examples:
Description_de,Description_en,Description_frOriginalName_de,OriginalName_en,OriginalName_fr
_de / _en remains fully supported, and additional language tags are preserved in the generated i18n template.
File Name Structure
Survey data files MUST follow this naming convention:
sub-<label>[_ses-<label>]_survey-<label>.tsv
Note: The legacy format _task-<label>_beh.tsv is also supported but deprecated.
Sidecar JSON (*_survey.json)
The survey sidecar defines the structure, content, and administrative metadata of the questionnaire.
Top-Level Objects
Object |
Requirement |
Description |
|---|---|---|
|
REQUIRED |
Platform and respondent details. |
|
REQUIRED |
Instrument identification. |
|
OPTIONAL |
Scoring and interpretation rules. |
|
OPTIONAL |
Normative data and reference values. |
|
REQUIRED |
Schema and creation details. |
|
OPTIONAL |
Any other key is treated as a Question Item. |
Official Library vs Project Copy
PRISM uses the same JSON shape in two contexts:
Official library template: the canonical instrument definition in
official/library/survey/Project copy: the project-local administration template in
code/library/survey/
The split is intentional:
The official library should describe the instrument itself: canonical name, references, item texts, levels, scale metadata, and other properties that remain true across projects.
The project copy should describe how that instrument was actually administered in a specific dataset: language used, respondent, online vs paper, software platform, software version, and any project-specific adaptations.
This means administration metadata stays in the existing Technical block. Do not add a separate top-level Administration object.
In practice:
Technical.AdministrationMethod= how the instrument was administered in the project (online,paper,interview,phone,mixed)Technical.SoftwarePlatform= with what it was administered in the project (LimeSurvey,PsychoPy,Pavlovia,Paper and Pencil,Other)Technical.SoftwareVersion= software version when applicable
When templates are copied from the official library into a project, these project-local Technical fields should be completed there.
Technical Object Fields
Key |
Requirement |
Type |
Description |
|---|---|---|---|
|
REQUIRED |
|
MUST be |
|
REQUIRED |
|
MUST be |
|
OPTIONAL |
|
Project-local platform used for administration (e.g., |
|
OPTIONAL |
|
Project-local version of the software platform. |
|
REQUIRED |
|
Project-local language code actually administered (e.g., |
|
REQUIRED |
|
Project-local respondent type (e.g., |
|
OPTIONAL |
|
Project-local administration mode ( |
|
RECOMMENDED |
|
Input method (e.g., |
|
OPTIONAL |
|
Hardware used (e.g., |
|
OPTIONAL |
|
Who supervised the test ( |
|
OPTIONAL |
|
Where it took place ( |
Note: PRISM supports bilingual (i18n) source templates and single-language compiled templates. See the i18n section below.
I18n Object (Optional)
If present, I18n describes which languages are available in the template.
Key |
Requirement |
Type |
Description |
|---|---|---|---|
|
OPTIONAL |
|
List of language codes available in the template. |
|
OPTIONAL |
|
Default language when compiling/exporting. |
|
OPTIONAL |
|
Translation validation approach (e.g., |
Study Object Fields
Key |
Requirement |
Type |
Description |
|---|---|---|---|
|
REQUIRED |
|
Project-local task identifier (e.g., |
|
REQUIRED |
|
Full name (e.g., |
|
OPTIONAL |
|
Common abbreviation (e.g., |
|
OPTIONAL |
|
Instrument version. |
|
OPTIONAL |
|
Reference citation. |
|
OPTIONAL |
|
DOI for the instrument. |
|
OPTIONAL |
|
Instrument authors. |
|
OPTIONAL |
|
Rights and license information. |
|
OPTIONAL |
|
High-level access classification ( |
|
OPTIONAL |
|
Rights holder (publisher, consortium, etc.). |
|
OPTIONAL |
|
Short usage constraint note and/or a URL to the statement. |
|
OPTIONAL |
|
Psychological construct measured (e.g., |
|
OPTIONAL |
|
Keywords describing the instrument. |
|
OPTIONAL |
|
Detailed description or abstract. |
|
OPTIONAL |
|
Instructions given to the participant. |
|
OPTIONAL |
|
Psychometric properties. |
|
OPTIONAL |
|
Estimated time to complete. |
|
OPTIONAL |
|
Structured list of references (objects with |
|
OPTIONAL |
|
Translation/adaptation provenance (source/target language, validated, reference). |
Scoring Object Fields (Optional)
Defines how the data should be interpreted or scored.
Key |
Type |
Description |
|---|---|---|
|
|
General method (e.g., |
|
|
Possible |
|
|
Clinical thresholds and their interpretations. |
|
|
List of items that need inversion. |
|
|
Structured definitions of sub-scores (Name, Items, Method). |
Normative Object Fields (Optional)
Key |
Type |
Description |
|---|---|---|
|
|
Population on which normative data is based. |
|
|
Citation for normative data. |
|
|
Percentile cutoffs (e.g., |
Question Item Fields
Any top-level key that is not one of the above objects is considered a question definition (e.g., "Q01", "item_1").
Key |
Requirement |
Type |
Description |
|---|---|---|---|
|
REQUIRED |
|
The exact text of the question (string) or an i18n map (e.g., |
|
OPTIONAL |
|
Mapping of numeric values to labels. Values may be strings or i18n maps. |
|
OPTIONAL |
|
Units (if applicable). |
|
OPTIONAL |
|
URL to an ontology term. |
|
OPTIONAL |
|
Logic for when this item is applicable (e.g., |
|
OPTIONAL |
|
Hard bounds for validation. |
|
OPTIONAL |
|
Soft bounds (triggers warnings). |
|
OPTIONAL |
|
List of allowed values. |
|
OPTIONAL |
|
Expected type ( |
|
OPTIONAL |
|
Used for longitudinal/repeated data mapping. |
Study.References Objects
Each entry in Study.References must specify a Type from the available enum, and it may include a Citation, canonical DOI (10.x/...), and a URL (uri format). Additional optional metadata includes Year (integer) and Notes, which can be a string or a localized object to document translations or comments.
Example Sidecar
{
"Technical": {
"StimulusType": "Questionnaire",
"FileFormat": "tsv",
"SoftwarePlatform": "LimeSurvey",
"Language": "en",
"Respondent": "self",
"ResponseType": ["button"]
},
"I18n": {
"Languages": ["en", "de"],
"DefaultLanguage": "en"
},
"Study": {
"TaskName": "moodcheck",
"OriginalName": {
"en": "Dummy Mood Check",
"de": "Dummy Stimmungs-Check"
},
"Version": "1.0",
"Authors": ["PRISM Demo Team"],
"DOI": "",
"License": "Demo content for training/testing",
"Access": "public",
"References": [
{
"Type": "manual",
"Citation": "Dummy questionnaire manual for PRISM testing.",
"DOI": "",
"URL": "https://example.org/dummy-manual",
"Year": 2026,
"Notes": {
"en": "Demo manual"
}
}
],
"Translation": {
"SourceLanguage": "en",
"TargetLanguage": "de",
"Validated": true,
"Reference": "(translation validation citation / DOI / URL)"
}
},
"Metadata": {
"SchemaVersion": "1.1.1",
"CreationDate": "2025-01-01"
},
"Q01": {
"Description": {
"en": "I felt focused during my daily tasks",
"de": "Ich war bei meinen taeglichen Aufgaben konzentriert"
},
"Levels": {
"0": {
"en": "Not at all",
"de": "Gar nicht"
},
"1": {
"en": "Somewhat",
"de": "Teilweise"
}
}
}
}