NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire TUDomainResourceA 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
Interfaces Implemented: MetadataResource
... url ΣC0..1uriCanonical identifier for this questionnaire, represented as an absolute URI (globally unique)
+ Warning: URL should not contain | or # - these characters make processing canonical references problematic
... identifier Σ0..*IdentifierBusiness identifier for questionnaire

... version Σ0..1stringBusiness version of the questionnaire
... versionAlgorithm[x] Σ0..1How to compare versions
Binding: Version Algorithm (Extensible)
.... versionAlgorithmStringstring
.... versionAlgorithmCodingCoding
... name ΣC0..1stringName for this questionnaire (computer friendly)
... title ΣT0..1stringName for this questionnaire (human friendly)
... derivedFrom Σ0..*canonical(Questionnaire)Based on Questionnaire

... status ?!ΣC1..1codedraft | active | retired | unknown
Binding: PublicationStatus (Required)
... experimental Σ0..1booleanFor testing purposes, not real usage
... subjectType Σ0..*codeResource that can be subject of QuestionnaireResponse
Binding: Resource Types (Required)

... date Σ0..1dateTimeDate last changed
... publisher ΣT0..1stringName of the publisher/steward (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher

... description ΣT0..1markdownNatural language description of the questionnaire
... useContext ΣTU0..*UsageContextThe context that the content is intended to support

... jurisdiction ΣXD0..*CodeableConceptIntended jurisdiction for questionnaire (if applicable)
Binding: Jurisdiction ValueSet (Extensible)

... purpose T0..1markdownWhy this questionnaire is defined
... copyright T0..1markdownUse and/or publishing restrictions
... copyrightLabel T0..1stringCopyright holder and year(s)
... approvalDate 0..1dateWhen the questionnaire was approved by publisher
... lastReviewDate 0..1dateWhen the questionnaire was last reviewed by the publisher
... effectivePeriod Σ0..1PeriodWhen the questionnaire is expected to be used
... code Σ0..*CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (Example)

... item C0..*BackboneElementQuestions 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 coding, decimal, integer, date, dateTime, time, string or quantity items can have answerOption or 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 cannot be present. Use answerOption.initialSelected instead
+ Rule: If there are more than one enableWhen, enableBehavior must be specified
+ Rule: Can only have multiple initial values for repeating items
+ Warning: Can only have answerConstraint if answerOption or answerValueSet are present. (This is a warning because extensions may serve the same purpose)

.... linkId C1..1stringUnique id for item in questionnaire
+ Warning: Link ids should be 255 characters or less
.... definition 0..1uriElementDefinition - details for the item
.... code C0..*CodingCorresponding concept for this item in a terminology
Binding: Questionnaire Question Codes (Example)

.... prefix 0..1stringE.g. "1(a)", "2.5.3"
.... text T0..1stringPrimary text for the item
.... type C1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: Questionnaire Item Type (Required)
.... enableWhen ?!C0..*BackboneElementOnly allow data when
+ Rule: If the operator is 'exists', the value must be a boolean

..... question 1..1stringThe linkId of question that determines whether item is enabled/disabled
..... operator C1..1codeexists | = | != | > | < | >= | <=
Binding: Questionnaire Item Operator (Required)
..... answer[x] TC1..1Value for question comparison based on operator
Binding: Questionnaire Answer Codes (Example)
...... answerBooleanboolean
...... answerDecimaldecimal
...... answerIntegerinteger
...... answerDatedate
...... answerDateTimedateTime
...... answerTimetime
...... answerStringstring
...... answerCodingCoding
...... answerQuantityQuantity
...... answerReferenceReference(Any)
.... enableBehavior C0..1codeall | any
Binding: Enable When Behavior (Required)
.... disabledDisplay 0..1codehidden | protected
Binding: Questionnaire Item Disabled Display (Required)
.... required C0..1booleanWhether the item must be included in data results
.... repeats C0..1booleanWhether the item may repeat
.... readOnly C0..1booleanDon't allow human editing
.... maxLength C0..1integerNo more than these many characters
.... answerConstraint C0..1codeoptionsOnly | optionsOrType | optionsOrString
Binding: Questionnaire answer constraints value set (Required)
.... answerValueSet C0..1canonical(ValueSet)ValueSet containing permitted answers
.... answerOption C0..*BackboneElementPermitted answer

..... value[x] T1..1Answer value
Binding: Questionnaire Answer Codes (Example)
...... valueIntegerinteger
...... valueDatedate
...... valueTimetime
...... valueStringstring
...... valueCodingCoding
...... valueReferenceReference(Any)
..... initialSelected 0..1booleanWhether option is selected by default
.... initial C0..*BackboneElementInitial value(s) when item is first rendered

..... value[x] T1..1Actual value for initializing the question
Binding: Questionnaire Answer Codes (Example)
...... valueBooleanboolean
...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
...... valueUriuri
...... valueAttachmentAttachment
...... valueCodingCoding
...... valueQuantityQuantity
...... valueReferenceReference(Any)
.... item 0..*see itemNested questionnaire items


doco Documentation for this format