Name Flags Card. Type Description & Constraints doco
. . Questionnaire TU DomainResource A structured set of questions
+ Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation
+ Rule: The link ids for groups and questions must be unique within the questionnaire
Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension
. . . url Σ 0..1 uri Canonical identifier for this questionnaire, represented as a URI (globally unique)
. . . identifier Σ 0..* Identifier Additional identifier for the questionnaire
. . . version Σ 0..1 string Business version of the questionnaire
. . . name Σ 0..1 string Name for this questionnaire (computer friendly)
. . . title Σ 0..1 string Name for this questionnaire (human friendly)
. . . derivedFrom 0..* canonical( Questionnaire) Instantiates protocol or definition
. . . status ?! Σ 1..1 code draft | active | retired | unknown
PublicationStatus ( Required)
. . . experimental Σ 0..1 boolean For testing purposes, not real usage
. . . subjectType Σ 0..* code Resource that can be subject of QuestionnaireResponse
ResourceType ( Required)
. . . date Σ 0..1 dateTime Date last changed
. . . publisher Σ 0..1 string Name of the publisher (organization or individual)
. . . contact Σ 0..* ContactDetail Contact details for the publisher
. . . description 0..1 markdown Natural language description of the questionnaire
. . . useContext Σ 0..* UsageContext The context that the content is intended to support
. . . jurisdiction Σ 0..* CodeableConcept Intended jurisdiction for questionnaire (if applicable)
Jurisdiction ( Extensible)
. . . purpose 0..1 markdown Why this questionnaire is defined
. . . copyright 0..1 markdown Use and/or publishing restrictions
. . . approvalDate 0..1 date When the questionnaire was approved by publisher
. . . lastReviewDate 0..1 date When the questionnaire was last reviewed
. . . effectivePeriod Σ 0..1 Period When the questionnaire is expected to be used
. . . code Σ 0..* Coding Concept that represents the overall questionnaire
Questionnaire Question Codes ( Example)
. . . item I 0..* BackboneElement Questions and sections within the Questionnaire
+ Rule: Group items must have nested items when Questionanire is complete
+ Warning: Groups should have items
+ Rule: Display items cannot have child items
+ Rule: Display items cannot have a "code" asserted
+ Rule: A question cannot have both answerOption and answerValueSet
+ Rule: Only 'choice' and 'open-choice' items can have answerValueSet
+ Rule: Required and repeat aren't permitted for display items
+ Rule: Initial values can't be specified for groups or display items
+ Rule: Read-only can't be specified for "display" items
+ Rule: Maximum length can only be declared for simple question types
+ Rule: If one or more answerOption is present, initial[x] must be missing
+ Rule: If there are more than one enableWhen, enableBehavior must be specified
+ Rule: Can only have multiple initial values for repeating items
. . . . linkId 1..1 string Unique id for item in questionnaire
. . . . definition 0..1 uri ElementDefinition - details for the item
. . . . code I 0..* Coding Corresponding concept for this item in a terminology
Questionnaire Question Codes ( Example)
. . . . prefix 0..1 string E.g. "1(a)", "2.5.3"
. . . . text 0..1 string Primary text for the item
. . . . type 1..1 code group | display | boolean | decimal | integer | date | dateTime +
QuestionnaireItemType ( Required)
. . . . enableWhen ?! I 0..* BackboneElement Only allow data when
+ Rule: If the operator is 'exists', the value must be a boolean
. . . . . question 1..1 string Question that determines whether item is enabled
. . . . . operator 1..1 code exists | = | != | > | < | >= | <=
QuestionnaireItemOperator ( Required)
. . . . . answer[x] I 1..1 Value for question comparison based on operator
Questionnaire Answer Codes ( Example)
. . . . . . answerBoolean boolean
. . . . . . answerDecimal decimal
. . . . . . answerInteger integer
. . . . . . answerDate date
. . . . . . answerDateTime dateTime
. . . . . . answerTime time
. . . . . . answerString string
. . . . . . answerCoding Coding
. . . . . . answerQuantity Quantity
. . . . . . answerReference Reference( Any)
. . . . enableBehavior I 0..1 code all | any
EnableWhenBehavior ( Required)
. . . . required I 0..1 boolean Whether the item must be included in data results
. . . . repeats I 0..1 boolean Whether the item may repeat
. . . . readOnly I 0..1 boolean Don't allow human editing
. . . . maxLength I 0..1 integer No more than this many characters
. . . . answerValueSet I 0..1 canonical( ValueSet) Valueset containing permitted answers
. . . . answerOption I 0..* BackboneElement Permitted answer
. . . . . value[x] 1..1 Answer value
Questionnaire Answer Codes ( Example)
. . . . . . valueInteger integer
. . . . . . valueDate date
. . . . . . valueTime time
. . . . . . valueString string
. . . . . . valueCoding Coding
. . . . . . valueReference Reference( Any)
. . . . . initialSelected 0..1 boolean Whether option is selected by default
. . . . initial I 0..* BackboneElement Initial value(s) when item is first rendered
. . . . . value[x] 1..1 Actual value for initializing the question
Questionnaire Answer Codes ( Example)
. . . . . . valueBoolean boolean
. . . . . . valueDecimal decimal
. . . . . . valueInteger integer
. . . . . . valueDate date
. . . . . . valueDateTime dateTime
. . . . . . valueTime time
. . . . . . valueString string
. . . . . . valueUri uri
. . . . . . valueAttachment Attachment
. . . . . . valueCoding Coding
. . . . . . valueQuantity Quantity
. . . . . . valueReference Reference( Any)
. . . . item I 0..* see item Nested questionnaire items

doco Documentation for this format