Current Build
(No assigned work group) Maturity Level: 1Informative Use Context: Any

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/cqif-questionnaire

A questionnaire with the ability to specify behavior associated with questions or groups of questions

This profile was published on Sat, May 30, 2015 00:00+0000 as a draft by Health Level Seven, Inc. - CDS WG.

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... item 0..*BackboneElement
.... option 0..*BackboneElement
..... cqif-optionCode 0..*CodeableConceptMeaning of the response option
URL: http://hl7.org/fhir/StructureDefinition/cqif-optionCode
.... cqif-condition 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-condition
.... cqif-initialValue 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-initialValue
.... cqif-calculatedValue 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-calculatedValue
... cqif-library 0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-library

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... cqif-library I0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-library
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ0..1uriLogical URI to reference this questionnaire (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..*uriInstantiates protocol or definition
... status ?!Σ1..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: ResourceType (required)
... date Σ0..1dateTimeDate this was last changed
... publisher Σ0..1stringName of the publisher (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher
... useContext Σ0..*UsageContextContext the content is intended to support
... jurisdiction Σ0..*CodeableConceptIntended jurisdiction for questionnaire (if applicable)
Binding: Jurisdiction ValueSet (extensible)
... description 0..1markdownNatural language description of the questionnaire
... 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 questionnaire
Binding: Questionnaire Question Codes (example)
... item I0..*BackboneElementQuestions and sections within the Questionnaire
.... id 0..1stringxml:id (or equivalent in JSON)
.... cqif-condition I0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-condition
.... cqif-initialValue I0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-initialValue
.... cqif-calculatedValue I0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-calculatedValue
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
.... linkId 1..1stringUnique id for item in questionnaire
.... definition 0..1uriElementDefinition - details for the item
.... code I0..*CodingCorresponding concept for this item in a terminology
Binding: Questionnaire Question Codes (example)
.... prefix 0..1stringE.g. "1(a)", "2.5.3"
.... text 0..1stringPrimary text for the item
.... type 1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... enableWhen ?!I0..*BackboneElementOnly allow data when
que-7: enableWhen must contain either a 'answer' or a 'hasAnswer' element
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
..... question 1..1stringQuestion that determines whether item is enabled
..... hasAnswer I0..1booleanEnable when answered or not
..... answer[x] I0..1boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Value question must have
Binding: Questionnaire Answer Codes (example)
.... required I0..1booleanWhether the item must be included in data results
.... repeats I0..1booleanWhether the item may repeat
.... readOnly I0..1booleanDon't allow human editing
.... maxLength I0..1integerNo more than this many characters
.... options I0..1Reference(ValueSet)Valueset containing permitted answers
.... option I0..*BackboneElementPermitted answer
..... id 0..1stringxml:id (or equivalent in JSON)
..... cqif-optionCode I0..*CodeableConceptMeaning of the response option
URL: http://hl7.org/fhir/StructureDefinition/cqif-optionCode
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
..... value[x] 1..1integer, date, time, string, CodingAnswer value
Binding: Questionnaire Answer Codes (example)
..... initialSelected 0..1booleanWhether option is selected by default
.... initial[x] I0..1boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Default value when item is first rendered
Binding: Questionnaire Answer Codes (example)
.... item I0..*Unknown reference to #Questionnaire.item
Nested questionnaire items

doco Documentation for this format
<!-- CQIF-Questionnaire -->doco

<Questionnaire xmlns="http://hl7.org/fhir"
>
  <!-- from Element: extension -->
 <id value="[id]"/><!-- 0..1 Logical id of this artifact -->
 <meta><!-- 0..1 Meta Metadata about the resource --></meta>
 <implicitRules value="[uri]"/><!-- 0..1 A set of rules under which this content was created -->
 <language value="[code]"/><!-- 0..1 Language of the resource content  -->
 <text><!-- 0..1 Narrative 
     Text summary of the resource, for human interpretation --></text>
 <contained><!-- 0..* Resource Contained, inline Resources --></contained>
 <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
 <url value="[uri]"/><!-- 0..1 Logical URI to reference this questionnaire (globally unique) -->
 <identifier><!-- 0..* Identifier 
     Additional identifier for the questionnaire --></identifier>
 <version value="[string]"/><!-- 0..1 Business version of the questionnaire -->
 <name value="[string]"/><!-- 0..1 Name for this questionnaire (computer friendly) -->
 <title value="[string]"/><!-- 0..1 Name for this questionnaire (human friendly) -->
 <derivedFrom value="[uri]"/><!-- 0..* Instantiates protocol or definition -->
 <status value="[code]"/><!-- 1..1 draft | active | retired | unknown  -->
 <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage -->
 <subjectType value="[code]"/><!-- 0..* Resource that can be subject of QuestionnaireResponse  -->
 <date value="[dateTime]"/><!-- 0..1 Date this was last changed -->
 <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) -->
 <contact><!-- 0..* ContactDetail 
     Contact details for the publisher --></contact>
 <useContext><!-- 0..* UsageContext 
     Context the content is intended to support --></useContext>
 <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for questionnaire (if applicable)  --></jurisdiction>
 <description value="[markdown]"/><!-- 0..1 Natural language description of the questionnaire -->
 <purpose value="[markdown]"/><!-- 0..1 Why this questionnaire is defined -->
 <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions -->
 <approvalDate value="[date]"/><!-- 0..1 When the questionnaire was approved by publisher -->
 <lastReviewDate value="[date]"/><!-- 0..1 When the questionnaire was last reviewed -->
 <effectivePeriod><!-- 0..1 Period 
     When the questionnaire is expected to be used --></effectivePeriod>
 <code><!-- 0..* Coding Concept that represents the overall questionnaire  --></code>
 <item> ?? 0..* BackboneElement  <!-- ?? 0..* Questions and sections within the Questionnaire -->
  <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
  <linkId value="[string]"/><!-- 1..1 Unique id for item in questionnaire -->
  <definition value="[uri]"/><!-- 0..1 ElementDefinition - details for the item -->
  <code><!-- 0..* Coding Corresponding concept for this item in a terminology  --></code>
  <prefix value="[string]"/><!-- 0..1 E.g. "1(a)", "2.5.3" -->
  <text value="[string]"/><!-- 0..1 Primary text for the item -->
  <type value="[code]"/><!-- 1..1 group | display | boolean | decimal | integer | date | dateTime +  -->
  <enableWhen> ?? 0..* BackboneElement  <!-- ?? 0..* Only allow data when -->
   <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
   <question value="[string]"/><!-- 1..1 Question that determines whether item is enabled -->
   <hasAnswer value="[boolean]"/><!-- 0..1 Enable when answered or not -->
   <answer[x]><!-- 0..1 boolean|decimal|integer|
     date|dateTime|time|string|uri|Attachment|Coding|Quantity|Reference(Resource) Value question must have  --></answer[x]>
  </enableWhen>
  <required value="[boolean]"/><!-- 0..1 Whether the item must be included in data results -->
  <repeats value="[boolean]"/><!-- 0..1 Whether the item may repeat -->
  <readOnly value="[boolean]"/><!-- 0..1 Don't allow human editing -->
  <maxLength value="[integer]"/><!-- 0..1 No more than this many characters -->
  <options><!-- 0..1 Reference(ValueSet) 
      Valueset containing permitted answers --></options>
  <option> ?? 0..* BackboneElement  <!-- ?? 0..* Permitted answer -->
   <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
   <value[x]><!-- 1..1 integer|date|time|string|Coding Answer value  --></value[x]>
   <initialSelected value="[boolean]"/><!-- 0..1 Whether option is selected by default -->
  </option>
  <initial[x]><!-- 0..1 boolean|decimal|integer|date|dateTime|
    time|string|uri|Attachment|Coding|Quantity|Reference(Resource) Default value when item is first rendered  --></initial[x]>
  <item><!-- See #Questionnaire.item  Nested questionnaire items --></item>
 </item>
</Questionnaire>
{ // CQIF-Questionnaire
  // from Element: extension
    "meta" : { Meta }, //Metadata about the resource
    "implicitRules" : "<uri>", //A set of rules under which this content was created
    "language" : "<code>", //Language of the resource content 
    "text" : { Narrative }, //Text summary of the resource, for human interpretation
    "contained" : [{ Resource }], //Contained, inline Resources
    "extension" : [ //  sliced by value:url  in the specified order, Open 
      { // A library containing logic referenced by the questionnaire // C?
        // from Element: extension
      }
    ],
    "modifierExtension" : [{ Extension }], //Extensions that cannot be ignored
    "url" : "<uri>", //Logical URI to reference this questionnaire (globally unique)
    "identifier" : [{ Identifier }], //Additional identifier for the questionnaire
    "version" : "<string>", //Business version of the questionnaire
    "name" : "<string>", //Name for this questionnaire (computer friendly)
    "title" : "<string>", //Name for this questionnaire (human friendly)
    "derivedFrom" : ["<uri>"], //Instantiates protocol or definition
    "status" : "<code>", // R! draft | active | retired | unknown 
    "experimental" : <boolean>, //For testing purposes, not real usage
    "subjectType" : ["<code>"], //Resource that can be subject of QuestionnaireResponse 
    "date" : "<dateTime>", //Date this was last changed
    "publisher" : "<string>", //Name of the publisher (organization or individual)
    "contact" : [{ ContactDetail }], //Contact details for the publisher
    "useContext" : [{ UsageContext }], //Context the content is intended to support
    "jurisdiction" : [{ CodeableConcept }], //Intended jurisdiction for questionnaire (if applicable) 
    "description" : "<markdown>", //Natural language description of the questionnaire
    "purpose" : "<markdown>", //Why this questionnaire is defined
    "copyright" : "<markdown>", //Use and/or publishing restrictions
    "approvalDate" : "<date>", //When the questionnaire was approved by publisher
    "lastReviewDate" : "<date>", //When the questionnaire was last reviewed
    "effectivePeriod" : { Period }, //When the questionnaire is expected to be used
    "code" : [{ Coding }], //Concept that represents the overall questionnaire 
    "item" : [{ BackboneElement }], // C?Questions and sections within the Questionnaire
  }

Differential View

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... item 0..*BackboneElement
.... option 0..*BackboneElement
..... cqif-optionCode 0..*CodeableConceptMeaning of the response option
URL: http://hl7.org/fhir/StructureDefinition/cqif-optionCode
.... cqif-condition 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-condition
.... cqif-initialValue 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-initialValue
.... cqif-calculatedValue 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-calculatedValue
... cqif-library 0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-library

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... cqif-library I0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-library
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ0..1uriLogical URI to reference this questionnaire (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..*uriInstantiates protocol or definition
... status ?!Σ1..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: ResourceType (required)
... date Σ0..1dateTimeDate this was last changed
... publisher Σ0..1stringName of the publisher (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher
... useContext Σ0..*UsageContextContext the content is intended to support
... jurisdiction Σ0..*CodeableConceptIntended jurisdiction for questionnaire (if applicable)
Binding: Jurisdiction ValueSet (extensible)
... description 0..1markdownNatural language description of the questionnaire
... 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 questionnaire
Binding: Questionnaire Question Codes (example)
... item I0..*BackboneElementQuestions and sections within the Questionnaire
.... id 0..1stringxml:id (or equivalent in JSON)
.... cqif-condition I0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-condition
.... cqif-initialValue I0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-initialValue
.... cqif-calculatedValue I0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-calculatedValue
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
.... linkId 1..1stringUnique id for item in questionnaire
.... definition 0..1uriElementDefinition - details for the item
.... code I0..*CodingCorresponding concept for this item in a terminology
Binding: Questionnaire Question Codes (example)
.... prefix 0..1stringE.g. "1(a)", "2.5.3"
.... text 0..1stringPrimary text for the item
.... type 1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... enableWhen ?!I0..*BackboneElementOnly allow data when
que-7: enableWhen must contain either a 'answer' or a 'hasAnswer' element
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
..... question 1..1stringQuestion that determines whether item is enabled
..... hasAnswer I0..1booleanEnable when answered or not
..... answer[x] I0..1boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Value question must have
Binding: Questionnaire Answer Codes (example)
.... required I0..1booleanWhether the item must be included in data results
.... repeats I0..1booleanWhether the item may repeat
.... readOnly I0..1booleanDon't allow human editing
.... maxLength I0..1integerNo more than this many characters
.... options I0..1Reference(ValueSet)Valueset containing permitted answers
.... option I0..*BackboneElementPermitted answer
..... id 0..1stringxml:id (or equivalent in JSON)
..... cqif-optionCode I0..*CodeableConceptMeaning of the response option
URL: http://hl7.org/fhir/StructureDefinition/cqif-optionCode
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
..... value[x] 1..1integer, date, time, string, CodingAnswer value
Binding: Questionnaire Answer Codes (example)
..... initialSelected 0..1booleanWhether option is selected by default
.... initial[x] I0..1boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Default value when item is first rendered
Binding: Questionnaire Answer Codes (example)
.... item I0..*Unknown reference to #Questionnaire.item
Nested questionnaire items

doco Documentation for this format

XML Template

<!-- CQIF-Questionnaire -->doco

<Questionnaire xmlns="http://hl7.org/fhir"
>
  <!-- from Element: extension -->
 <id value="[id]"/><!-- 0..1 Logical id of this artifact -->
 <meta><!-- 0..1 Meta Metadata about the resource --></meta>
 <implicitRules value="[uri]"/><!-- 0..1 A set of rules under which this content was created -->
 <language value="[code]"/><!-- 0..1 Language of the resource content  -->
 <text><!-- 0..1 Narrative 
     Text summary of the resource, for human interpretation --></text>
 <contained><!-- 0..* Resource Contained, inline Resources --></contained>
 <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
 <url value="[uri]"/><!-- 0..1 Logical URI to reference this questionnaire (globally unique) -->
 <identifier><!-- 0..* Identifier 
     Additional identifier for the questionnaire --></identifier>
 <version value="[string]"/><!-- 0..1 Business version of the questionnaire -->
 <name value="[string]"/><!-- 0..1 Name for this questionnaire (computer friendly) -->
 <title value="[string]"/><!-- 0..1 Name for this questionnaire (human friendly) -->
 <derivedFrom value="[uri]"/><!-- 0..* Instantiates protocol or definition -->
 <status value="[code]"/><!-- 1..1 draft | active | retired | unknown  -->
 <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage -->
 <subjectType value="[code]"/><!-- 0..* Resource that can be subject of QuestionnaireResponse  -->
 <date value="[dateTime]"/><!-- 0..1 Date this was last changed -->
 <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) -->
 <contact><!-- 0..* ContactDetail 
     Contact details for the publisher --></contact>
 <useContext><!-- 0..* UsageContext 
     Context the content is intended to support --></useContext>
 <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for questionnaire (if applicable)  --></jurisdiction>
 <description value="[markdown]"/><!-- 0..1 Natural language description of the questionnaire -->
 <purpose value="[markdown]"/><!-- 0..1 Why this questionnaire is defined -->
 <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions -->
 <approvalDate value="[date]"/><!-- 0..1 When the questionnaire was approved by publisher -->
 <lastReviewDate value="[date]"/><!-- 0..1 When the questionnaire was last reviewed -->
 <effectivePeriod><!-- 0..1 Period 
     When the questionnaire is expected to be used --></effectivePeriod>
 <code><!-- 0..* Coding Concept that represents the overall questionnaire  --></code>
 <item> ?? 0..* BackboneElement  <!-- ?? 0..* Questions and sections within the Questionnaire -->
  <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
  <linkId value="[string]"/><!-- 1..1 Unique id for item in questionnaire -->
  <definition value="[uri]"/><!-- 0..1 ElementDefinition - details for the item -->
  <code><!-- 0..* Coding Corresponding concept for this item in a terminology  --></code>
  <prefix value="[string]"/><!-- 0..1 E.g. "1(a)", "2.5.3" -->
  <text value="[string]"/><!-- 0..1 Primary text for the item -->
  <type value="[code]"/><!-- 1..1 group | display | boolean | decimal | integer | date | dateTime +  -->
  <enableWhen> ?? 0..* BackboneElement  <!-- ?? 0..* Only allow data when -->
   <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
   <question value="[string]"/><!-- 1..1 Question that determines whether item is enabled -->
   <hasAnswer value="[boolean]"/><!-- 0..1 Enable when answered or not -->
   <answer[x]><!-- 0..1 boolean|decimal|integer|
     date|dateTime|time|string|uri|Attachment|Coding|Quantity|Reference(Resource) Value question must have  --></answer[x]>
  </enableWhen>
  <required value="[boolean]"/><!-- 0..1 Whether the item must be included in data results -->
  <repeats value="[boolean]"/><!-- 0..1 Whether the item may repeat -->
  <readOnly value="[boolean]"/><!-- 0..1 Don't allow human editing -->
  <maxLength value="[integer]"/><!-- 0..1 No more than this many characters -->
  <options><!-- 0..1 Reference(ValueSet) 
      Valueset containing permitted answers --></options>
  <option> ?? 0..* BackboneElement  <!-- ?? 0..* Permitted answer -->
   <modifierExtension><!-- 0..* Extension  Extensions that cannot be ignored  --></modifierExtension>
   <value[x]><!-- 1..1 integer|date|time|string|Coding Answer value  --></value[x]>
   <initialSelected value="[boolean]"/><!-- 0..1 Whether option is selected by default -->
  </option>
  <initial[x]><!-- 0..1 boolean|decimal|integer|date|dateTime|
    time|string|uri|Attachment|Coding|Quantity|Reference(Resource) Default value when item is first rendered  --></initial[x]>
  <item><!-- See #Questionnaire.item  Nested questionnaire items --></item>
 </item>
</Questionnaire>

JSON Template

{ // CQIF-Questionnaire
  // from Element: extension
    "meta" : { Meta }, //Metadata about the resource
    "implicitRules" : "<uri>", //A set of rules under which this content was created
    "language" : "<code>", //Language of the resource content 
    "text" : { Narrative }, //Text summary of the resource, for human interpretation
    "contained" : [{ Resource }], //Contained, inline Resources
    "extension" : [ //  sliced by value:url  in the specified order, Open 
      { // A library containing logic referenced by the questionnaire // C?
        // from Element: extension
      }
    ],
    "modifierExtension" : [{ Extension }], //Extensions that cannot be ignored
    "url" : "<uri>", //Logical URI to reference this questionnaire (globally unique)
    "identifier" : [{ Identifier }], //Additional identifier for the questionnaire
    "version" : "<string>", //Business version of the questionnaire
    "name" : "<string>", //Name for this questionnaire (computer friendly)
    "title" : "<string>", //Name for this questionnaire (human friendly)
    "derivedFrom" : ["<uri>"], //Instantiates protocol or definition
    "status" : "<code>", // R! draft | active | retired | unknown 
    "experimental" : <boolean>, //For testing purposes, not real usage
    "subjectType" : ["<code>"], //Resource that can be subject of QuestionnaireResponse 
    "date" : "<dateTime>", //Date this was last changed
    "publisher" : "<string>", //Name of the publisher (organization or individual)
    "contact" : [{ ContactDetail }], //Contact details for the publisher
    "useContext" : [{ UsageContext }], //Context the content is intended to support
    "jurisdiction" : [{ CodeableConcept }], //Intended jurisdiction for questionnaire (if applicable) 
    "description" : "<markdown>", //Natural language description of the questionnaire
    "purpose" : "<markdown>", //Why this questionnaire is defined
    "copyright" : "<markdown>", //Use and/or publishing restrictions
    "approvalDate" : "<date>", //When the questionnaire was approved by publisher
    "lastReviewDate" : "<date>", //When the questionnaire was last reviewed
    "effectivePeriod" : { Period }, //When the questionnaire is expected to be used
    "code" : [{ Coding }], //Concept that represents the overall questionnaire 
    "item" : [{ BackboneElement }], // C?Questions and sections within the Questionnaire
  }

 

Alternate definitions: Master Definition (XML, JSON), Schematron

PathNameConformanceValueSet
Questionnaire.languageCommon LanguagesextensibleCommon Languages
Questionnaire.statusPublicationStatusrequiredPublicationStatus
Questionnaire.subjectTypeResourceTyperequiredResourceType
Questionnaire.jurisdictionJurisdiction ValueSetextensibleJurisdiction ValueSet
Questionnaire.codeQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.item.codeQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.item.typeQuestionnaireItemTyperequiredQuestionnaireItemType
Questionnaire.item.enableWhen.answer[x]Questionnaire Answer CodesexampleQuestionnaire Answer Codes
Questionnaire.item.option.value[x]Questionnaire Answer CodesexampleQuestionnaire Answer Codes
Questionnaire.item.initial[x]Questionnaire Answer CodesexampleQuestionnaire Answer Codes
IdPathDetailsRequirements
que-7Questionnaire.item.enableWhenenableWhen must contain either a 'answer' or a 'hasAnswer' element
Expression : hasAnswer.exists() xor answer.exists()
.