Skip to main content

Questionnaire

ResourceSpecialized · Definitional ArtifactsTrial useMaturity 3

A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
17 of 19 parameters tested

Structure​

ElementCard.TypeDescription
urlΣ
0..1uriCanonical identifier for this questionnaire, represented as a URI (globally unique)
identifierΣ
0..*IdentifierAdditional identifier for the questionnaire
versionΣ
0..1stringBusiness version of the questionnaire
nameΣ
0..1stringName for this questionnaire (computer friendly)
titleΣ
0..1stringName for this questionnaire (human friendly)
derivedFrom
0..*canonical(Questionnaire)Instantiates protocol or definition
statusRequired?!Σ
1..1codedraft | active | retired | unknownBinding (required): publication-status
experimentalΣ
0..1booleanFor testing purposes, not real usage
subjectTypeΣ
0..*codeResource that can be subject of QuestionnaireResponseBinding (required): resource-types
dateΣ
0..1dateTimeDate last changed
publisherΣ
0..1stringName of the publisher (organization or individual)
contactΣ
0..*ContactDetailContact details for the publisher
description
0..1markdownNatural language description of the questionnaire
useContextΣ
0..*UsageContextThe context that the content is intended to support
jurisdictionΣ
0..*CodeableConceptIntended jurisdiction for questionnaire (if applicable)Binding (extensible): jurisdiction
purpose
0..1markdownWhy this questionnaire is defined
copyright
0..1markdownUse and/or publishing restrictions
approvalDate
0..1dateWhen the questionnaire was approved by publisher
lastReviewDate
0..1dateWhen the questionnaire was last reviewed
effectivePeriodΣ
0..1PeriodWhen the questionnaire is expected to be used
codeΣ
0..*CodingConcept that represents the overall questionnaireBinding (example): questionnaire-questions
item
0..*BackboneElementQuestions and sections within the Questionnaire
linkIdRequired
1..1stringUnique id for item in questionnaire
definition
0..1uriElementDefinition - details for the item
code
0..*CodingCorresponding concept for this item in a terminologyBinding (example): questionnaire-questions
prefix
0..1stringE.g. "1(a)", "2.5.3"
text
0..1stringPrimary text for the item
typeRequired
1..1codegroup | display | boolean | decimal | integer | date | dateTime +Binding (required): item-type
enableWhen?!
0..*BackboneElementOnly allow data when
questionRequired
1..1stringQuestion that determines whether item is enabled
operatorRequired
1..1codeexists | = | != | > | < | >= | <=Binding (required): questionnaire-enable-operator
answer[x]Required
1..1boolean | decimal | integer | date | dateTime | time | string | Coding | Quantity | Reference(Resource)Value for question comparison based on operatorBinding (example): questionnaire-answers
enableBehavior
0..1codeall | anyBinding (required): questionnaire-enable-behavior
required
0..1booleanWhether the item must be included in data results
repeats
0..1booleanWhether the item may repeat
readOnly
0..1booleanDon't allow human editing
maxLength
0..1integerNo more than this many characters
answerValueSet
0..1canonical(ValueSet)Valueset containing permitted answers
answerOption
0..*BackboneElementPermitted answer
value[x]Required
1..1integer | date | time | string | Coding | Reference(Resource)Answer valueBinding (example): questionnaire-answers
initialSelected
0..1booleanWhether option is selected by default
initial
0..*BackboneElementInitial value(s) when item is first rendered
value[x]Required
1..1boolean | decimal | integer | date | dateTime | time | string | uri | Attachment | Coding | Quantity | Reference(Resource)Actual value for initializing the questionBinding (example): questionnaire-answers
item
0..*Same as Questionnaire.itemNested questionnaire items

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/Questionnaire?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
codetoken

A code that corresponds to one of its items in the questionnaire

Questionnaire.item.code
contexttoken

A use context assigned to the questionnaire

(Questionnaire.useContext.value.ofType(CodeableConcept))
context-quantityquantity

A quantity- or range-valued use context assigned to the questionnaire

(Questionnaire.useContext.value.ofType(Quantity)) | (Questionnaire.useContext.value.ofType(Range))
context-typetoken

A type of use context assigned to the questionnaire

Questionnaire.useContext.code
context-type-quantitycomposite

A use context type and quantity- or range-based value assigned to the questionnaire

Questionnaire.useContext
context-type-valuecomposite

A use context type and value assigned to the questionnaire

Questionnaire.useContext
datedate

The questionnaire publication date

Questionnaire.date
definitionuri

ElementDefinition - details for the item

Questionnaire.item.definition
descriptionstring

The description of the questionnaire

Questionnaire.description
effectivedate

The time during which the questionnaire is intended to be in use

Questionnaire.effectivePeriod
identifiertoken

External identifier for the questionnaire

Questionnaire.identifier
jurisdictiontoken

Intended jurisdiction for the questionnaire

Questionnaire.jurisdiction
namestring

Computationally friendly name of the questionnaire

Questionnaire.name
publisherstring

Name of the publisher of the questionnaire

Questionnaire.publisher
statustoken

The current status of the questionnaire

Questionnaire.status
subject-typetoken

Resource that can be subject of QuestionnaireResponse

Questionnaire.subjectType
titlestring

The human-friendly name of the questionnaire

Questionnaire.title
urluri

The uri that identifies the questionnaire

Questionnaire.url
versiontoken

The business version of the questionnaire

Questionnaire.version

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition