DSTU2 STU 3 Ballot
This page is part of the FHIR Specification (v1.0.2: DSTU 2). The current version which supercedes this version is

This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . For a full list of available versions, see the Directory of published versions . Page versions: . Page versions: R5 R4B R4 R3 R2

4.26 2.29 Resource Questionnaire - Content Resource Questionnaire - Content

A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
Patient Care Patient Care Work Group Work Group Maturity Level : 2 Maturity Level : 0 Compartments : Not linked to any defined compartments : Not linked to any defined compartments

A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.

4.26.1 Scope and Usage 2.29.1 Scope and Usage A

A Questionnaire is an organized collection of questions intended to solicit information from patients, providers or other individuals involved in the healthcare domain. They may be simple flat lists of questions or can be hierarchically organized in groups and sub-groups, each containing questions. The is an organized collection of questions intended to solicit information from patients, providers or other individuals involved in the healthcare domain. They may be simple flat lists of questions or can be hierarchically organized in groups and sub-groups, each containing questions. The Questionnaire defines the questions to be asked, how they are ordered and grouped and what the constraints are on the allowed answers. The results of a defines the questions to be asked, how they are ordered and grouped, any intervening instructional text and what the constraints are on the allowed answers. The results of a Questionnaire can be communicated using the can be communicated using the QuestionnaireResponse resource. Questionnaires cover the need to communicate data originating from forms used in medical history examinations, research questionnaires and sometimes full clinical specialty records. In many systems this data is collected using user-defined screens and forms. Questionnaires define specifics about data capture - exactly what questions were asked, in what order, what choices for answers were, etc. Each of these questions is part of the Questionnaire, and as such the Questionnaire is a separately identifiable Resource, whereas the individual questions are not. Examples of Questionnaires include: Past medical history (PMH) Family diseases Social history Research questionnaires/Clinical research forms (CRFs) Quality and evaluation forms Patient intake form (e.g. clipboard) Insurance claim form This resource is limited in scope to support the characteristics of simple questionnaires. However, common extensions have been defined to allow more sophisticated behavior. This includes: resource.

Questionnaires cover the need to communicate data originating from forms used in medical history examinations, research questionnaires and sometimes full clinical specialty records. In many systems this data is collected using user-defined screens and forms. Questionnaires define specifics about data capture - exactly what questions were asked, in what order, what choices for answers were, etc. Each of these questions is part of the Questionnaire, and as such the Questionnaire is a separately identifiable Resource, whereas the individual questions are not.

Examples of Questionnaires include:

  • Past medical history (PMH)
  • Family diseases
  • Social history
  • Research questionnaires/Clinical research forms (CRFs)
  • Quality and evaluation forms
  • Patient intake form (e.g. clipboard)
  • Insurance claim form

This resource is limited in scope to support the characteristics of simple questionnaires. However, common extensions have been defined to allow more sophisticated behavior. This includes:

Additional profiles such as the Structured Data Capture Questionnaire profile may provide additional capabilities for defining more sophisticated questionnaires and forms.

4.26.2 Boundaries and Relationships 2.29.2 Boundaries and Relationships

Questionnaires differ from differ from Lists because because Lists group existing resources, while group existing resources, while Questionnaires group arbitrary questions. In theory, a group arbitrary questions. In theory, a Questionnaire could be expressed as a could be expressed as a List or or Composition containing containing DataElement resources. However, the former would disregard the "wholeness" associated with a questionnaire where questions must generally be maintained as a single structure. The latter would focus on rendering of the data elements rather than organizing the capture of information. resources. However, the former would disregard the "wholeness" associated with a questionnaire where questions must generally be maintained as a single structure. The latter would focus on rendering of the data elements rather than organizing the capture of information.

PLANNED CHANGE:

Questionnaire is one of the Definition resources in the FHIR Workflow specification. As such, it is expected to be adjusted to align with the Definition workflow pattern. Any concerns about performing such alignment are welcome as ballot comments and/or tracker items.

4.26.3 Background and Context 2.29.3 Background and Context Groups and questions that make up a Questionnaire can be explicitly coded to refer to externally defined numbering or identification of questions and sections on formally defined questionnaires. This allows extraction of the data on a form and post-processing of the data contained in a Questionnaire. Such coding is not required however and Questionnaires may be quite loosely defined. The section Questionnaire versus Resources below discusses the issues of collecting data in such loosely defined Questionnaires versus collecting data as well-defined separate Resources. This resource is referenced by questionnaireresponse

Groups and questions that make up a Questionnaire can be explicitly coded to refer to externally defined numbering or identification of questions and sections on formally defined questionnaires. This allows extraction of the data on a form and post-processing of the data contained in a Questionnaire. Such coding is not required however and Questionnaires may be quite loosely defined. The section Questionnaire versus Resources below discusses the issues of collecting data in such loosely defined Questionnaires versus collecting data as well-defined separate Resources.

This resource is referenced by CarePlan and QuestionnaireResponse

4.26.4 Resource Content 2.29.4 Resource Content

Structure

The link ids for groups and questions must be unique within the questionnaire BackboneElement A question must use either option or options, not both Questionnaire Answer Codes
Name Flags Card. Type Description & Constraints Description & Constraints doco
. . Questionnaire I DomainResource A structured set of questions A structured set of questions
If root group must be "required" The link ids for groups and questions must be unique within the questionnaire
. . . url Σ 0..1 uri Globally unique logical identifier for questionnaire
. . . identifier Σ 0..* Identifier External identifiers for this questionnaire External identifiers for this questionnaire
. . . version Σ 0..1 string Logical identifier for this version of Questionnaire Logical identifier for this version of Questionnaire
. . . status ?! Σ 1..1 code draft | published | retired draft | published | retired
QuestionnaireStatus ( ( Required )
. . . date Σ 0..1 dateTime Date this version was authored Date this version was authored
. . . publisher Σ 0..1 string Organization/individual who designed the questionnaire Organization/individual who designed the questionnaire
. . . telecom Σ 0..* ContactPoint Contact information of the publisher Contact information of the publisher
. . subjectType . useContext Σ 0..* code CodeableConcept Resource that can be subject of QuestionnaireResponse Questionnaire intends to support these contexts
ResourceType ( Required Context of Use ValueSet ( Extensible )
. . group . title Σ I 0..1 1..1 string Name for the questionnaire
. . . concept Grouped questions Groups may either contain questions or groups but not both Σ 0..* Coding Concept that represents the overall questionnaire
linkId Questionnaire Question Codes ( Example )
. . . subjectType Σ 0..1 0..* string code To link questionnaire with questionnaire response Resource that can be subject of QuestionnaireResponse
ResourceType ( Required )
. . title . item I 0..* BackboneElement Questions and sections within the Questionnaire
Σ Read-only can't be specified for "display" items
Default values can't be specified for groups or display items
Required and repeat aren't permitted for display items
Only 'choice' items can have options
A question cannot have both option and options
Display items cannot have a "concept" asserted
Maximum length can only be declared for simple question types
Group items must have nested items, display items cannot have nested items
. . . . linkId 0..1 string Name to be displayed for group To link questionnaire with questionnaire response
. . . . concept Σ I 0..* Coding Concept that represents this section in a questionnaire Concept that represents this item within in a questionnaire
Questionnaire Question Codes ( Questionnaire Question Codes ( Example )
. . . text . prefix 0..1 string Additional text for the group E.g. "1(a)", "2.5.3"
. . . required . text Σ 0..1 boolean string Whether the group must be included in data results Primary text for the item
. . . repeats . type 0..1 1..1 boolean code Whether the group may repeat group | display | question | boolean | decimal | integer | date | dateTime +
QuestionnaireItemType ( Required )
. . . group . enableWhen ?! Σ I 0..* see group BackboneElement Nested questionnaire group Only allow data when:
enableWhen must contain either an 'answer' or an 'answered' element
. . . . . question 1..1 string Question that determines whether item is enabled
. . . . . hasAnswer I 0..* 0..1 BackboneElement boolean Questions in this group Enable when answered or not
. . . . . answer[x] I 0..1 Value question must have
. linkId . . . . . answerBoolean 0..1 boolean
. . . . . . answerDecimal string decimal
. . . . . . answerInteger To link questionnaire with questionnaire response integer
. . . concept . . . answerDate 0..* date
. . . . . . answerDateTime Coding dateTime
. . . . . . answerInstant Concept that represents this question on a questionnaire Questionnaire Question Codes ( Example instant )
. . . text . . . answerTime 0..1 time
...... answerString string
. . . . . . answerUri Text of the question as it is shown to the user uri
. . . type . . . answerAttachment Attachment
. . . . . . answerCoding 0..1 Coding
. . . . . . answerQuantity code Quantity
. . . . . . answerReference boolean | decimal | integer | date | dateTime + AnswerFormat Reference ( Required Any )
. . . . required I 0..1 boolean Whether the question must be answered in data results Whether the item must be included in data results
. . . . repeats I 0..1 boolean Whether the item may repeat
.... readOnly I 0..1 boolean Whether the question can have multiple answers Don't allow human editing
. . . . maxLength options I 0..1 integer No more than this many characters
.... options I 0..1 Reference ( ValueSet ) Valueset containing permitted answers Valueset containing permitted answers
. . . . option I 0..* Coding BackboneElement Permitted answer Permitted answer
. . . . . value[x] ( 1..1 Answer value
Questionnaire Answer Codes ( Example )
. . . . group . . valueInteger integer
. . . . . . valueDate date
...... valueTime time
...... valueString string
...... valueCoding Coding
.... initial[x] I 0..1 Initial presumed answer for question
..... initialBoolean boolean
..... initialDecimal decimal
..... initialInteger integer
..... initialDate date
..... initialDateTime dateTime
..... initialInstant instant
..... initialTime time
..... initialString string
..... initialUri uri
..... initialAttachment Attachment
..... initialCoding Coding
..... initialQuantity Quantity
. . . . . initialReference Reference ( Any )
.... item I 0..* see group see item Nested questionnaire group Nested questionnaire items

Documentation for this format doco Documentation for this format

UML Diagram UML Diagram ( Legend )

Questionnaire ( ( DomainResource ) An absolute URL that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this questionnaire is (or will be) published url : uri [0..1] This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) identifier : : Identifier [0..*] [0..*] The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated version : : string [0..1] [0..1] The lifecycle status of the questionnaire as a whole (this element modifies the meaning of other elements) The lifecycle status of the questionnaire as a whole (this element modifies the meaning of other elements) status : : code [1..1] « [1..1] « Lifecycle status of the questionnaire. (Strength=Required) Lifecycle status of the questionnaire. (Strength=Required) QuestionnaireStatus ! » ! » The date that this questionnaire was last changed The date that this questionnaire was last changed date : : dateTime [0..1] [0..1] Organization or person responsible for developing and maintaining the questionnaire Organization or person responsible for developing and maintaining the questionnaire publisher : : string [0..1] [0..1] Contact details to assist a user in finding and communicating with the publisher Contact details to assist a user in finding and communicating with the publisher telecom : : ContactPoint [0..*] A code that identifies the questionnaire as falling into a particular group of like questionnaires; e.g. "Pediatric", "Admissions", "Research", "Demographic", "Opinion Survey", etc useContext : CodeableConcept [0..*] « Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use. (Strength=Extensible) Context of Use ValueSet [0..*] + » The name or label associated with this questionnaire title : string [0..1] Identifies a how this question or group of questions is known in a particular terminology such as LOINC concept : Coding [0..*] « Codes for questionnaires, groups and individual questions (Strength=Example) Questionnaire Question ?? » Identifies the types of subjects that can be the subject of the questionnaire Identifies the types of subjects that can be the subject of the questionnaire subjectType : : code [0..*] « [0..*] « One of the resource types defined as part of FHIR. (Strength=Required) One of the resource types defined as part of FHIR. (Strength=Required) ResourceType ! » ! » Group Item An identifier that is unique within the Questionnaire allowing linkage to the equivalent group in a QuestionnaireResponse resource An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource linkId : : string [0..1] [0..1] The human-readable name for this section of the questionnaire Identifies a how this group of questions is known in a particular terminology such as LOINC title : string [0..1] concept : Coding [0..*] « Codes for questionnaires, groups and individual questions (Strength=Example) Questionnaire Question ?? » Identifies a how this group of questions is known in a particular terminology such as LOINC A short label for a particular group, question or set of display text within the questionnaire concept : Coding [0..*] « prefix : string [0..1] Codes for groupings of questionnaire questions. (Strength=Example) The name of a section, the text of a question or text content for a text item Questionnaire Question ?? » text : string [0..1] Additional text for the group, used for display purposes Identifies the type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.) text : string [0..1] type : code [1..1] « Distinguishes groups from questions and display text and indicates data type for questions (Strength=Required) QuestionnaireItemType ! » If true, indicates that the group must be present and have required questions within it answered. If false, the group may be skipped when answering the questionnaire If true, indicates that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire required : : boolean [0..1] [0..1] Whether the group may occur multiple times in the instance, containing multiple sets of answers Whether the item may occur multiple times in the instance, containing multiple sets of answers repeats : : boolean [0..1] [0..1] Question If true, the value cannot be changed by a human respondent to the Questionnaire readOnly : boolean [0..1] An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse linkId : string [0..1] maxLength : integer [0..1] Identifies a how this question is known in a particular terminology such as LOINC concept : Coding [0..*] « Codes corresponding to individual questions. (Strength=Example) Reference to a value set containing a list of codes representing permitted answers for the question Questionnaire Question ?? » options : Reference [0..1] « ValueSet » The actual question as shown to the user to prompt them for an answer The value that should be pre-populated when rendering the questionnaire for user input text initial[x] : Type [0..1] « boolean : | decimal | integer | date | dateTime | instant | time | string [0..1] | uri | Attachment | Coding | Quantity | Reference ( Any ) » The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected type : code [0..1] « The expected format of an answer. (Strength=Required) AnswerFormat ! » EnableWhen If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire The linkId for the question whose answer (or lack of answer) governs whether this item is enabled required : boolean [0..1] question : string [1..1] If true, the question may have more than one answer If present, indicates that this item should be enabled only if the specified question is answered or not answered repeats : hasAnswer : boolean [0..1] [0..1] Reference to a value set containing a list of codes representing permitted answers for the question If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer options answer[x] : Type [0..1] « boolean : | decimal | integer | date | dateTime | instant | time | string | uri | Attachment | Coding | Quantity | Reference [0..1] « ValueSet ( Any » ) » Option For a "choice" question, identifies one of the permitted answers for the question Identifies a specific answer that's allowed as the answer to a question option value[x] : Type [1..1] « integer : | date | time | string | Coding [0..*] « ; Allowed values to answer questions. (Strength=Example) Allowed values to answer questions. (Strength=Example) Questionnaire Answer ?? » Questionnaire Answer ?? » A sub-group within a group. The ordering of groups within this group is relevant If present, indicates that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true (this element modifies the meaning of other elements) group enableWhen [0..*] Nested group, containing nested question for this question. The order of groups within the question is relevant For a "choice" question, identifies one of the permitted answers for the question group option [0..*] Set of questions within this group. The order of questions within the group is relevant Allows text, questions and other groups to be nested beneath a question or group question item [0..*] A collection of related questions (or further groupings of questions) The questions and groupings of questions that make up the questionnaire group item [1..1] [0..*]

XML Template XML Template <

<Questionnaire xmlns="http://hl7.org/fhir"> doco

 <!-- from Resource: id, meta, implicitRules, and language -->
 <!-- from DomainResource: text, contained, extension, and modifierExtension -->
 <</identifier>
 <
 <
 <
 <
 <</telecom>
 <
 <
  <
  <
  <</concept>
  <
  <
  <
  <</group>
  <
   <
   <</concept>
   <
   <
   <
   <
   <</options>
   <</option>
   <</group>
  </question>
 </group>

 <url value="[uri]"/><!-- 0..1 Globally unique logical identifier for  questionnaire -->
 <identifier><!-- 0..* Identifier External identifiers for this questionnaire --></identifier>
 <version value="[string]"/><!-- 0..1 Logical identifier for this version of Questionnaire -->
 <status value="[code]"/><!-- 1..1 draft | published | retired -->
 <date value="[dateTime]"/><!-- 0..1 Date this version was authored -->
 <publisher value="[string]"/><!-- 0..1 Organization/individual who designed the questionnaire -->
 <telecom><!-- 0..* ContactPoint Contact information of the publisher --></telecom>
 <useContext><!-- 0..* CodeableConcept Questionnaire intends to support these contexts --></useContext>
 <title value="[string]"/><!-- 0..1 Name for the questionnaire -->
 <concept><!-- 0..* Coding Concept that represents the overall questionnaire --></concept>
 <subjectType value="[code]"/><!-- 0..* Resource that can be subject of QuestionnaireResponse -->
 <item>  <!-- ?? 0..* Questions and sections within the Questionnaire -->
  <linkId value="[string]"/><!-- 0..1 To link questionnaire with questionnaire response -->
  <concept><!-- ?? 0..* Coding Concept that represents this item within in a questionnaire --></concept>
  <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 | question | boolean | decimal | integer | date | dateTime + -->
  <enableWhen>  <!-- 0..* Only allow data when: -->
   <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|instant|time|
     string|uri|Attachment|Coding|Quantity|Reference(Any) 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..* Permitted answer -->
   <value[x]><!-- 1..1 integer|date|time|string|Coding Answer value --></value[x]>
  </option>
  <initial[x]><!-- ?? 0..1 boolean|decimal|integer|date|dateTime|instant|time|
    string|uri|Attachment|Coding|Quantity|Reference(Any) Initial presumed answer for question --></initial[x]>

  <item><!-- ?? 0..* Content as for Questionnaire.item Nested questionnaire items --></item>
 </item>

</Questionnaire>

JSON Template JSON Template { "resourceType" : "",

{doco
  "resourceType" : "Questionnaire",

  // from Resource: id, meta, implicitRules, and language
  // from DomainResource: text, contained, extension, and modifierExtension
  "
  "
  "
  "
  "
  "
  "
  "
    "
    "
    "
    "
    "
    "
    "
    "
      "
      "
      "
      "
      "
      "
      "
      "
      "
    }]
  }

  "url" : "<uri>", // Globally unique logical identifier for  questionnaire
  "identifier" : [{ Identifier }], // External identifiers for this questionnaire
  "version" : "<string>", // Logical identifier for this version of Questionnaire
  "status" : "<code>", // R!  draft | published | retired
  "date" : "<dateTime>", // Date this version was authored
  "publisher" : "<string>", // Organization/individual who designed the questionnaire
  "telecom" : [{ ContactPoint }], // Contact information of the publisher
  "useContext" : [{ CodeableConcept }], // Questionnaire intends to support these contexts
  "title" : "<string>", // Name for the questionnaire
  "concept" : [{ Coding }], // Concept that represents the overall questionnaire
  "subjectType" : ["<code>"], // Resource that can be subject of QuestionnaireResponse
  "item" : [{ // C? Questions and sections within the Questionnaire
    "linkId" : "<string>", // To link questionnaire with questionnaire response
    "concept" : [{ Coding }], // C? Concept that represents this item within in a questionnaire
    "prefix" : "<string>", // E.g. "1(a)", "2.5.3"
    "text" : "<string>", // Primary text for the item
    "type" : "<code>", // R!  group | display | question | boolean | decimal | integer | date | dateTime +
    "enableWhen" : [{ // Only allow data when:
      "question" : "<string>", // R!  Question that determines whether item is enabled
      "hasAnswer" : <boolean>, // C? Enable when answered or not
      // answer[x]: Value question must have. One of these 13:

      "answerBoolean" : <boolean>
      "answerDecimal" : <decimal>
      "answerInteger" : <integer>
      "answerDate" : "<date>"
      "answerDateTime" : "<dateTime>"
      "answerInstant" : "<instant>"
      "answerTime" : "<time>"
      "answerString" : "<string>"
      "answerUri" : "<uri>"
      "answerAttachment" : { Attachment }
      "answerCoding" : { Coding }
      "answerQuantity" : { Quantity }
      "answerReference" : { Reference(Any) }
    }],
    "required" : <boolean>, // C? Whether the item must be included in data results
    "repeats" : <boolean>, // C? Whether the item may repeat
    "readOnly" : <boolean>, // C? Don't allow human editing
    "maxLength" : <integer>, // C? No more than this many characters
    "options" : { Reference(ValueSet) }, // C? Valueset containing permitted answers
    "option" : [{ // C? Permitted answer
      // value[x]: Answer value. One of these 5:

      "valueInteger" : <integer>
      "valueDate" : "<date>"
      "valueTime" : "<time>"
      "valueString" : "<string>"
      "valueCoding" : { Coding }
    }],
    // initial[x]: Initial presumed answer for question. One of these 13:

    "initialBoolean" : <boolean>,
    "initialDecimal" : <decimal>,
    "initialInteger" : <integer>,
    "initialDate" : "<date>",
    "initialDateTime" : "<dateTime>",
    "initialInstant" : "<instant>",
    "initialTime" : "<time>",
    "initialString" : "<string>",
    "initialUri" : "<uri>",
    "initialAttachment" : { Attachment },
    "initialCoding" : { Coding },
    "initialQuantity" : { Quantity },
    "initialReference" : { Reference(Any) },
    "item" : [{ Content as for Questionnaire.item }] // C? Nested questionnaire items
  }]

}

Turtle Template


@prefix fhir: <http://hl7.org/fhir/> .doco


[ a fhir:Questionnaire;
  fhir:nodeRole fhir:treeRoot; # if this is the parser root

  # from Resource: .id, .meta, .implicitRules, and .language
  # from DomainResource: .text, .contained, .extension, and .modifierExtension
  fhir:Questionnaire.url [ uri ]; # 0..1 Globally unique logical identifier for  questionnaire
  fhir:Questionnaire.identifier [ Identifier ], ... ; # 0..* External identifiers for this questionnaire
  fhir:Questionnaire.version [ string ]; # 0..1 Logical identifier for this version of Questionnaire
  fhir:Questionnaire.status [ code ]; # 1..1 draft | published | retired
  fhir:Questionnaire.date [ dateTime ]; # 0..1 Date this version was authored
  fhir:Questionnaire.publisher [ string ]; # 0..1 Organization/individual who designed the questionnaire
  fhir:Questionnaire.telecom [ ContactPoint ], ... ; # 0..* Contact information of the publisher
  fhir:Questionnaire.useContext [ CodeableConcept ], ... ; # 0..* Questionnaire intends to support these contexts
  fhir:Questionnaire.title [ string ]; # 0..1 Name for the questionnaire
  fhir:Questionnaire.concept [ Coding ], ... ; # 0..* Concept that represents the overall questionnaire
  fhir:Questionnaire.subjectType [ code ], ... ; # 0..* Resource that can be subject of QuestionnaireResponse
  fhir:Questionnaire.item [ # 0..* Questions and sections within the Questionnaire
    fhir:Questionnaire.item.linkId [ string ]; # 0..1 To link questionnaire with questionnaire response
    fhir:Questionnaire.item.concept [ Coding ], ... ; # 0..* Concept that represents this item within in a questionnaire
    fhir:Questionnaire.item.prefix [ string ]; # 0..1 E.g. "1(a)", "2.5.3"
    fhir:Questionnaire.item.text [ string ]; # 0..1 Primary text for the item
    fhir:Questionnaire.item.type [ code ]; # 1..1 group | display | question | boolean | decimal | integer | date | dateTime +
    fhir:Questionnaire.item.enableWhen [ # 0..* Only allow data when:
      fhir:Questionnaire.item.enableWhen.question [ string ]; # 1..1 Question that determines whether item is enabled
      fhir:Questionnaire.item.enableWhen.hasAnswer [ boolean ]; # 0..1 Enable when answered or not
      # Questionnaire.item.enableWhen.answer[x] : 0..1 Value question must have. One of these 13
        fhir:Questionnaire.item.enableWhen.answerBoolean [ boolean ]
        fhir:Questionnaire.item.enableWhen.answerDecimal [ decimal ]
        fhir:Questionnaire.item.enableWhen.answerInteger [ integer ]
        fhir:Questionnaire.item.enableWhen.answerDate [ date ]
        fhir:Questionnaire.item.enableWhen.answerDateTime [ dateTime ]
        fhir:Questionnaire.item.enableWhen.answerInstant [ instant ]
        fhir:Questionnaire.item.enableWhen.answerTime [ time ]
        fhir:Questionnaire.item.enableWhen.answerString [ string ]
        fhir:Questionnaire.item.enableWhen.answerUri [ uri ]
        fhir:Questionnaire.item.enableWhen.answerAttachment [ Attachment ]
        fhir:Questionnaire.item.enableWhen.answerCoding [ Coding ]
        fhir:Questionnaire.item.enableWhen.answerQuantity [ Quantity ]
        fhir:Questionnaire.item.enableWhen.answerReference [ Reference(Any) ]
    ], ...;
    fhir:Questionnaire.item.required [ boolean ]; # 0..1 Whether the item must be included in data results
    fhir:Questionnaire.item.repeats [ boolean ]; # 0..1 Whether the item may repeat
    fhir:Questionnaire.item.readOnly [ boolean ]; # 0..1 Don't allow human editing
    fhir:Questionnaire.item.maxLength [ integer ]; # 0..1 No more than this many characters
    fhir:Questionnaire.item.options [ Reference(ValueSet) ]; # 0..1 Valueset containing permitted answers
    fhir:Questionnaire.item.option [ # 0..* Permitted answer
      # Questionnaire.item.option.value[x] : 1..1 Answer value. One of these 5
        fhir:Questionnaire.item.option.valueInteger [ integer ]
        fhir:Questionnaire.item.option.valueDate [ date ]
        fhir:Questionnaire.item.option.valueTime [ time ]
        fhir:Questionnaire.item.option.valueString [ string ]
        fhir:Questionnaire.item.option.valueCoding [ Coding ]
    ], ...;
    # Questionnaire.item.initial[x] : 0..1 Initial presumed answer for question. One of these 13
      fhir:Questionnaire.item.initialBoolean [ boolean ]
      fhir:Questionnaire.item.initialDecimal [ decimal ]
      fhir:Questionnaire.item.initialInteger [ integer ]
      fhir:Questionnaire.item.initialDate [ date ]
      fhir:Questionnaire.item.initialDateTime [ dateTime ]
      fhir:Questionnaire.item.initialInstant [ instant ]
      fhir:Questionnaire.item.initialTime [ time ]
      fhir:Questionnaire.item.initialString [ string ]
      fhir:Questionnaire.item.initialUri [ uri ]
      fhir:Questionnaire.item.initialAttachment [ Attachment ]
      fhir:Questionnaire.item.initialCoding [ Coding ]
      fhir:Questionnaire.item.initialQuantity [ Quantity ]
      fhir:Questionnaire.item.initialReference [ Reference(Any) ]
    fhir:Questionnaire.item.item [ See Questionnaire.item ], ... ; # 0..* Nested questionnaire items
  ], ...;
]

Changes since DSTU2

Questionnaire
Questionnaire.url added
Questionnaire.useContext added
Questionnaire.title added
Questionnaire.concept added
Questionnaire.item Renamed from group to item
Min Cardinality changed from 1 to 0
Max Cardinality changed from 1 to *
Questionnaire.item.prefix added
Questionnaire.item.type added
Questionnaire.item.enableWhen added
Questionnaire.item.enableWhen.question added
Questionnaire.item.enableWhen.hasAnswer added
Questionnaire.item.enableWhen.answer[x] added
Questionnaire.item.readOnly added
Questionnaire.item.maxLength added
Questionnaire.item.options added
Questionnaire.item.option added
Questionnaire.item.option.value[x] added
Questionnaire.item.initial[x] added
Questionnaire.item.item added
Questionnaire.group.title deleted
Questionnaire.group.group deleted
Questionnaire.group.question deleted

See the Full Difference for further information

Structure

The link ids for groups and questions must be unique within the questionnaire BackboneElement A question must use either option or options, not both Questionnaire Answer Codes
Name Flags Card. Type Description & Constraints Description & Constraints doco
. . Questionnaire I DomainResource A structured set of questions A structured set of questions
If root group must be "required" The link ids for groups and questions must be unique within the questionnaire
. . . url Σ 0..1 uri Globally unique logical identifier for questionnaire
. . . identifier Σ 0..* Identifier External identifiers for this questionnaire External identifiers for this questionnaire
. . . version Σ 0..1 string Logical identifier for this version of Questionnaire Logical identifier for this version of Questionnaire
. . . status ?! Σ 1..1 code draft | published | retired draft | published | retired
QuestionnaireStatus ( ( Required )
. . . date Σ 0..1 dateTime Date this version was authored Date this version was authored
. . . publisher Σ 0..1 string Organization/individual who designed the questionnaire Organization/individual who designed the questionnaire
. . . telecom Σ 0..* ContactPoint Contact information of the publisher Contact information of the publisher
. . subjectType . useContext Σ 0..* code CodeableConcept Resource that can be subject of QuestionnaireResponse Questionnaire intends to support these contexts
ResourceType ( Required Context of Use ValueSet ( Extensible )
. . group . title Σ I 0..1 1..1 string Name for the questionnaire
. . . concept Grouped questions Groups may either contain questions or groups but not both Σ 0..* Coding Concept that represents the overall questionnaire
linkId Questionnaire Question Codes ( Example )
. . . subjectType Σ 0..1 0..* string code To link questionnaire with questionnaire response Resource that can be subject of QuestionnaireResponse
ResourceType ( Required )
. . title . item I 0..* BackboneElement Questions and sections within the Questionnaire
Σ Read-only can't be specified for "display" items
Default values can't be specified for groups or display items
Required and repeat aren't permitted for display items
Only 'choice' items can have options
A question cannot have both option and options
Display items cannot have a "concept" asserted
Maximum length can only be declared for simple question types
Group items must have nested items, display items cannot have nested items
.... linkId 0..1 string Name to be displayed for group To link questionnaire with questionnaire response
. . . . concept Σ I 0..* Coding Concept that represents this section in a questionnaire Concept that represents this item within in a questionnaire
Questionnaire Question Codes ( Questionnaire Question Codes ( Example )
. . . text . prefix 0..1 string Additional text for the group E.g. "1(a)", "2.5.3"
. . . required . text Σ 0..1 boolean string Whether the group must be included in data results Primary text for the item
. . . repeats . type 0..1 1..1 boolean code Whether the group may repeat group | display | question | boolean | decimal | integer | date | dateTime +
QuestionnaireItemType ( Required )
. . . group . enableWhen ?! Σ I 0..* see group BackboneElement Nested questionnaire group Only allow data when:
enableWhen must contain either an 'answer' or an 'answered' element
. . . . . question 1..1 string Question that determines whether item is enabled
. . . . . hasAnswer I 0..* 0..1 BackboneElement boolean Questions in this group Enable when answered or not
. . . . . answer[x] I 0..1 Value question must have
. linkId . . . . . answerBoolean 0..1 boolean
. . . . . . answerDecimal string decimal
. . . . . . answerInteger To link questionnaire with questionnaire response integer
. . . concept . . . answerDate 0..* date
...... answerDateTime Coding dateTime
. . . . . . answerInstant Concept that represents this question on a questionnaire Questionnaire Question Codes ( Example instant )
. . . text . . . answerTime 0..1 time
. . . . . . answerString string
. . . . . . answerUri Text of the question as it is shown to the user uri
. . . type . . . answerAttachment Attachment
. . . . . . answerCoding 0..1 Coding
...... answerQuantity code Quantity
. . . . . . answerReference boolean | decimal | integer | date | dateTime + AnswerFormat Reference ( Required Any )
. . . . required I 0..1 boolean Whether the question must be answered in data results Whether the item must be included in data results
. . . . repeats I 0..1 boolean Whether the item may repeat
.... readOnly I 0..1 boolean Whether the question can have multiple answers Don't allow human editing
. . . . maxLength options I 0..1 integer No more than this many characters
.... options I 0..1 Reference ( ValueSet ) Valueset containing permitted answers Valueset containing permitted answers
. . . . option I 0..* Coding BackboneElement Permitted answer Permitted answer
. . . . . value[x] ( 1..1 Answer value
Questionnaire Answer Codes ( Example )
. . . . group . . valueInteger integer
. . . . . . valueDate date
...... valueTime time
...... valueString string
...... valueCoding Coding
.... initial[x] I 0..1 Initial presumed answer for question
..... initialBoolean boolean
..... initialDecimal decimal
..... initialInteger integer
..... initialDate date
..... initialDateTime dateTime
..... initialInstant instant
..... initialTime time
..... initialString string
..... initialUri uri
..... initialAttachment Attachment
. . . . . initialCoding Coding
..... initialQuantity Quantity
..... initialReference Reference ( Any )
.... item I 0..* see group see item Nested questionnaire group Nested questionnaire items

Documentation for this format doco Documentation for this format

UML Diagram UML Diagram ( Legend )

Questionnaire ( ( DomainResource ) An absolute URL that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this questionnaire is (or will be) published url : uri [0..1] This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) identifier : : Identifier [0..*] [0..*] The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated version : : string [0..1] [0..1] The lifecycle status of the questionnaire as a whole (this element modifies the meaning of other elements) The lifecycle status of the questionnaire as a whole (this element modifies the meaning of other elements) status : : code [1..1] « [1..1] « Lifecycle status of the questionnaire. (Strength=Required) Lifecycle status of the questionnaire. (Strength=Required) QuestionnaireStatus ! » ! » The date that this questionnaire was last changed The date that this questionnaire was last changed date : : dateTime [0..1] [0..1] Organization or person responsible for developing and maintaining the questionnaire Organization or person responsible for developing and maintaining the questionnaire publisher : : string [0..1] [0..1] Contact details to assist a user in finding and communicating with the publisher Contact details to assist a user in finding and communicating with the publisher telecom : : ContactPoint [0..*] A code that identifies the questionnaire as falling into a particular group of like questionnaires; e.g. "Pediatric", "Admissions", "Research", "Demographic", "Opinion Survey", etc useContext : CodeableConcept [0..*] « Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use. (Strength=Extensible) Context of Use ValueSet [0..*] + » The name or label associated with this questionnaire title : string [0..1] Identifies a how this question or group of questions is known in a particular terminology such as LOINC concept : Coding [0..*] « Codes for questionnaires, groups and individual questions (Strength=Example) Questionnaire Question ?? » Identifies the types of subjects that can be the subject of the questionnaire Identifies the types of subjects that can be the subject of the questionnaire subjectType : : code [0..*] « [0..*] « One of the resource types defined as part of FHIR. (Strength=Required) One of the resource types defined as part of FHIR. (Strength=Required) ResourceType ! » ! » Group Item An identifier that is unique within the Questionnaire allowing linkage to the equivalent group in a QuestionnaireResponse resource An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource linkId : : string [0..1] [0..1] The human-readable name for this section of the questionnaire Identifies a how this group of questions is known in a particular terminology such as LOINC title : string [0..1] concept : Coding [0..*] « Codes for questionnaires, groups and individual questions (Strength=Example) Questionnaire Question ?? » Identifies a how this group of questions is known in a particular terminology such as LOINC A short label for a particular group, question or set of display text within the questionnaire concept : Coding [0..*] « prefix : string [0..1] Codes for groupings of questionnaire questions. (Strength=Example) The name of a section, the text of a question or text content for a text item Questionnaire Question ?? » text : string [0..1] Additional text for the group, used for display purposes Identifies the type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.) text : string [0..1] type : code [1..1] « Distinguishes groups from questions and display text and indicates data type for questions (Strength=Required) QuestionnaireItemType ! » If true, indicates that the group must be present and have required questions within it answered. If false, the group may be skipped when answering the questionnaire If true, indicates that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire required : : boolean [0..1] [0..1] Whether the group may occur multiple times in the instance, containing multiple sets of answers Whether the item may occur multiple times in the instance, containing multiple sets of answers repeats : : boolean [0..1] [0..1] Question If true, the value cannot be changed by a human respondent to the Questionnaire readOnly : boolean [0..1] An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse linkId : string [0..1] maxLength : integer [0..1] Identifies a how this question is known in a particular terminology such as LOINC concept : Coding [0..*] « Codes corresponding to individual questions. (Strength=Example) Reference to a value set containing a list of codes representing permitted answers for the question Questionnaire Question ?? » options : Reference [0..1] « ValueSet » The actual question as shown to the user to prompt them for an answer The value that should be pre-populated when rendering the questionnaire for user input text initial[x] : Type [0..1] « boolean : | decimal | integer | date | dateTime | instant | time | string [0..1] | uri | Attachment | Coding | Quantity | Reference ( Any ) » The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected type : code [0..1] « The expected format of an answer. (Strength=Required) AnswerFormat ! » EnableWhen If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire The linkId for the question whose answer (or lack of answer) governs whether this item is enabled required : boolean [0..1] question : string [1..1] If true, the question may have more than one answer If present, indicates that this item should be enabled only if the specified question is answered or not answered repeats : hasAnswer : boolean [0..1] [0..1] Reference to a value set containing a list of codes representing permitted answers for the question If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer options answer[x] : Type [0..1] « boolean : | decimal | integer | date | dateTime | instant | time | string | uri | Attachment | Coding | Quantity | Reference [0..1] « ValueSet ( Any » ) » Option For a "choice" question, identifies one of the permitted answers for the question Identifies a specific answer that's allowed as the answer to a question option value[x] : Type [1..1] « integer : | date | time | string | Coding [0..*] « ; Allowed values to answer questions. (Strength=Example) Allowed values to answer questions. (Strength=Example) Questionnaire Answer ?? » Questionnaire Answer ?? » A sub-group within a group. The ordering of groups within this group is relevant If present, indicates that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true (this element modifies the meaning of other elements) group enableWhen [0..*] Nested group, containing nested question for this question. The order of groups within the question is relevant For a "choice" question, identifies one of the permitted answers for the question group option [0..*] Set of questions within this group. The order of questions within the group is relevant Allows text, questions and other groups to be nested beneath a question or group question item [0..*] A collection of related questions (or further groupings of questions) The questions and groupings of questions that make up the questionnaire group item [1..1] [0..*]

XML Template XML Template <

<Questionnaire xmlns="http://hl7.org/fhir"> doco

 <!-- from Resource: id, meta, implicitRules, and language -->
 <!-- from DomainResource: text, contained, extension, and modifierExtension -->
 <</identifier>
 <
 <
 <
 <
 <</telecom>
 <
 <
  <
  <
  <</concept>
  <
  <
  <
  <</group>
  <
   <
   <</concept>
   <
   <
   <
   <
   <</options>
   <</option>
   <</group>
  </question>
 </group>

 <url value="[uri]"/><!-- 0..1 Globally unique logical identifier for  questionnaire -->
 <identifier><!-- 0..* Identifier External identifiers for this questionnaire --></identifier>
 <version value="[string]"/><!-- 0..1 Logical identifier for this version of Questionnaire -->
 <status value="[code]"/><!-- 1..1 draft | published | retired -->
 <date value="[dateTime]"/><!-- 0..1 Date this version was authored -->
 <publisher value="[string]"/><!-- 0..1 Organization/individual who designed the questionnaire -->
 <telecom><!-- 0..* ContactPoint Contact information of the publisher --></telecom>
 <useContext><!-- 0..* CodeableConcept Questionnaire intends to support these contexts --></useContext>
 <title value="[string]"/><!-- 0..1 Name for the questionnaire -->
 <concept><!-- 0..* Coding Concept that represents the overall questionnaire --></concept>
 <subjectType value="[code]"/><!-- 0..* Resource that can be subject of QuestionnaireResponse -->
 <item>  <!-- ?? 0..* Questions and sections within the Questionnaire -->
  <linkId value="[string]"/><!-- 0..1 To link questionnaire with questionnaire response -->
  <concept><!-- ?? 0..* Coding Concept that represents this item within in a questionnaire --></concept>
  <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 | question | boolean | decimal | integer | date | dateTime + -->
  <enableWhen>  <!-- 0..* Only allow data when: -->
   <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|instant|time|
     string|uri|Attachment|Coding|Quantity|Reference(Any) 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..* Permitted answer -->
   <value[x]><!-- 1..1 integer|date|time|string|Coding Answer value --></value[x]>
  </option>
  <initial[x]><!-- ?? 0..1 boolean|decimal|integer|date|dateTime|instant|time|
    string|uri|Attachment|Coding|Quantity|Reference(Any) Initial presumed answer for question --></initial[x]>

  <item><!-- ?? 0..* Content as for Questionnaire.item Nested questionnaire items --></item>
 </item>

</Questionnaire>

JSON Template JSON Template { "resourceType" : "",

{doco
  "resourceType" : "Questionnaire",

  // from Resource: id, meta, implicitRules, and language
  // from DomainResource: text, contained, extension, and modifierExtension
  "
  "
  "
  "
  "
  "
  "
  "
    "
    "
    "
    "
    "
    "
    "
    "
      "
      "
      "
      "
      "
      "
      "
      "
      "
    }]
  }

  "url" : "<uri>", // Globally unique logical identifier for  questionnaire
  "identifier" : [{ Identifier }], // External identifiers for this questionnaire
  "version" : "<string>", // Logical identifier for this version of Questionnaire
  "status" : "<code>", // R!  draft | published | retired
  "date" : "<dateTime>", // Date this version was authored
  "publisher" : "<string>", // Organization/individual who designed the questionnaire
  "telecom" : [{ ContactPoint }], // Contact information of the publisher
  "useContext" : [{ CodeableConcept }], // Questionnaire intends to support these contexts
  "title" : "<string>", // Name for the questionnaire
  "concept" : [{ Coding }], // Concept that represents the overall questionnaire
  "subjectType" : ["<code>"], // Resource that can be subject of QuestionnaireResponse
  "item" : [{ // C? Questions and sections within the Questionnaire
    "linkId" : "<string>", // To link questionnaire with questionnaire response
    "concept" : [{ Coding }], // C? Concept that represents this item within in a questionnaire
    "prefix" : "<string>", // E.g. "1(a)", "2.5.3"
    "text" : "<string>", // Primary text for the item
    "type" : "<code>", // R!  group | display | question | boolean | decimal | integer | date | dateTime +
    "enableWhen" : [{ // Only allow data when:
      "question" : "<string>", // R!  Question that determines whether item is enabled
      "hasAnswer" : <boolean>, // C? Enable when answered or not
      // answer[x]: Value question must have. One of these 13:

      "answerBoolean" : <boolean>
      "answerDecimal" : <decimal>
      "answerInteger" : <integer>
      "answerDate" : "<date>"
      "answerDateTime" : "<dateTime>"
      "answerInstant" : "<instant>"
      "answerTime" : "<time>"
      "answerString" : "<string>"
      "answerUri" : "<uri>"
      "answerAttachment" : { Attachment }
      "answerCoding" : { Coding }
      "answerQuantity" : { Quantity }
      "answerReference" : { Reference(Any) }
    }],
    "required" : <boolean>, // C? Whether the item must be included in data results
    "repeats" : <boolean>, // C? Whether the item may repeat
    "readOnly" : <boolean>, // C? Don't allow human editing
    "maxLength" : <integer>, // C? No more than this many characters
    "options" : { Reference(ValueSet) }, // C? Valueset containing permitted answers
    "option" : [{ // C? Permitted answer
      // value[x]: Answer value. One of these 5:

      "valueInteger" : <integer>
      "valueDate" : "<date>"
      "valueTime" : "<time>"
      "valueString" : "<string>"
      "valueCoding" : { Coding }
    }],
    // initial[x]: Initial presumed answer for question. One of these 13:

    "initialBoolean" : <boolean>,
    "initialDecimal" : <decimal>,
    "initialInteger" : <integer>,
    "initialDate" : "<date>",
    "initialDateTime" : "<dateTime>",
    "initialInstant" : "<instant>",
    "initialTime" : "<time>",
    "initialString" : "<string>",
    "initialUri" : "<uri>",
    "initialAttachment" : { Attachment },
    "initialCoding" : { Coding },
    "initialQuantity" : { Quantity },
    "initialReference" : { Reference(Any) },
    "item" : [{ Content as for Questionnaire.item }] // C? Nested questionnaire items
  }]

}
 
Alternate
definitions:

Turtle Template


@prefix fhir: <http://hl7.org/fhir/> .doco


[ a fhir:Questionnaire;
  fhir:nodeRole fhir:treeRoot; # if this is the parser root

  # from Resource: .id, .meta, .implicitRules, and .language
  # from DomainResource: .text, .contained, .extension, and .modifierExtension
  fhir:Questionnaire.url [ uri ]; # 0..1 Globally unique logical identifier for  questionnaire
  fhir:Questionnaire.identifier [ Identifier ], ... ; # 0..* External identifiers for this questionnaire
  fhir:Questionnaire.version [ string ]; # 0..1 Logical identifier for this version of Questionnaire
  fhir:Questionnaire.status [ code ]; # 1..1 draft | published | retired
  fhir:Questionnaire.date [ dateTime ]; # 0..1 Date this version was authored
  fhir:Questionnaire.publisher [ string ]; # 0..1 Organization/individual who designed the questionnaire
  fhir:Questionnaire.telecom [ ContactPoint ], ... ; # 0..* Contact information of the publisher
  fhir:Questionnaire.useContext [ CodeableConcept ], ... ; # 0..* Questionnaire intends to support these contexts
  fhir:Questionnaire.title [ string ]; # 0..1 Name for the questionnaire
  fhir:Questionnaire.concept [ Coding ], ... ; # 0..* Concept that represents the overall questionnaire
  fhir:Questionnaire.subjectType [ code ], ... ; # 0..* Resource that can be subject of QuestionnaireResponse
  fhir:Questionnaire.item [ # 0..* Questions and sections within the Questionnaire
    fhir:Questionnaire.item.linkId [ string ]; # 0..1 To link questionnaire with questionnaire response
    fhir:Questionnaire.item.concept [ Coding ], ... ; # 0..* Concept that represents this item within in a questionnaire
    fhir:Questionnaire.item.prefix [ string ]; # 0..1 E.g. "1(a)", "2.5.3"
    fhir:Questionnaire.item.text [ string ]; # 0..1 Primary text for the item
    fhir:Questionnaire.item.type [ code ]; # 1..1 group | display | question | boolean | decimal | integer | date | dateTime +
    fhir:Questionnaire.item.enableWhen [ # 0..* Only allow data when:
      fhir:Questionnaire.item.enableWhen.question [ string ]; # 1..1 Question that determines whether item is enabled
      fhir:Questionnaire.item.enableWhen.hasAnswer [ boolean ]; # 0..1 Enable when answered or not
      # Questionnaire.item.enableWhen.answer[x] : 0..1 Value question must have. One of these 13
        fhir:Questionnaire.item.enableWhen.answerBoolean [ boolean ]
        fhir:Questionnaire.item.enableWhen.answerDecimal [ decimal ]
        fhir:Questionnaire.item.enableWhen.answerInteger [ integer ]
        fhir:Questionnaire.item.enableWhen.answerDate [ date ]
        fhir:Questionnaire.item.enableWhen.answerDateTime [ dateTime ]
        fhir:Questionnaire.item.enableWhen.answerInstant [ instant ]
        fhir:Questionnaire.item.enableWhen.answerTime [ time ]
        fhir:Questionnaire.item.enableWhen.answerString [ string ]
        fhir:Questionnaire.item.enableWhen.answerUri [ uri ]
        fhir:Questionnaire.item.enableWhen.answerAttachment [ Attachment ]
        fhir:Questionnaire.item.enableWhen.answerCoding [ Coding ]
        fhir:Questionnaire.item.enableWhen.answerQuantity [ Quantity ]
        fhir:Questionnaire.item.enableWhen.answerReference [ Reference(Any) ]
    ], ...;
    fhir:Questionnaire.item.required [ boolean ]; # 0..1 Whether the item must be included in data results
    fhir:Questionnaire.item.repeats [ boolean ]; # 0..1 Whether the item may repeat
    fhir:Questionnaire.item.readOnly [ boolean ]; # 0..1 Don't allow human editing
    fhir:Questionnaire.item.maxLength [ integer ]; # 0..1 No more than this many characters
    fhir:Questionnaire.item.options [ Reference(ValueSet) ]; # 0..1 Valueset containing permitted answers
    fhir:Questionnaire.item.option [ # 0..* Permitted answer
      # Questionnaire.item.option.value[x] : 1..1 Answer value. One of these 5
        fhir:Questionnaire.item.option.valueInteger [ integer ]
        fhir:Questionnaire.item.option.valueDate [ date ]
        fhir:Questionnaire.item.option.valueTime [ time ]
        fhir:Questionnaire.item.option.valueString [ string ]
        fhir:Questionnaire.item.option.valueCoding [ Coding ]
    ], ...;
    # Questionnaire.item.initial[x] : 0..1 Initial presumed answer for question. One of these 13
      fhir:Questionnaire.item.initialBoolean [ boolean ]
      fhir:Questionnaire.item.initialDecimal [ decimal ]
      fhir:Questionnaire.item.initialInteger [ integer ]
      fhir:Questionnaire.item.initialDate [ date ]
      fhir:Questionnaire.item.initialDateTime [ dateTime ]
      fhir:Questionnaire.item.initialInstant [ instant ]
      fhir:Questionnaire.item.initialTime [ time ]
      fhir:Questionnaire.item.initialString [ string ]
      fhir:Questionnaire.item.initialUri [ uri ]
      fhir:Questionnaire.item.initialAttachment [ Attachment ]
      fhir:Questionnaire.item.initialCoding [ Coding ]
      fhir:Questionnaire.item.initialQuantity [ Quantity ]
      fhir:Questionnaire.item.initialReference [ Reference(Any) ]
    fhir:Questionnaire.item.item [ See Questionnaire.item ], ... ; # 0..* Nested questionnaire items
  ], ...;
]

Changes since DSTU2

Questionnaire
Questionnaire.url added
Questionnaire.useContext added
Questionnaire.title added
Questionnaire.concept added
Questionnaire.item Renamed from group to item
Min Cardinality changed from 1 to 0
Max Cardinality changed from 1 to *
Questionnaire.item.prefix added
Questionnaire.item.type added
Questionnaire.item.enableWhen added
Questionnaire.item.enableWhen.question added
Questionnaire.item.enableWhen.hasAnswer added
Questionnaire.item.enableWhen.answer[x] added
Questionnaire.item.readOnly added
Questionnaire.item.maxLength added
Questionnaire.item.options added
Questionnaire.item.option added
Questionnaire.item.option.value[x] added
Questionnaire.item.initial[x] added
Questionnaire.item.item added
Questionnaire.group.title deleted
Questionnaire.group.group deleted
Questionnaire.group.question deleted

See the Full Difference for further information

 

Alternate definitions: Master Definition ( XML , JSON ), XML Schema / Schematron , Resource Profile ( XML , (for ) + JSON Schema , ShEx (for Turtle ), Questionnaire )

4.26.4.1 Terminology Bindings 2.29.4.1 Terminology Bindings

Questionnaire.status Questionnaire.subjectType Questionnaire.group.concept Questionnaire.group.question.concept Questionnaire.group.question.option
Path Definition Type Reference
Questionnaire.status Lifecycle status of the questionnaire. Lifecycle status of the questionnaire. Required QuestionnaireStatus
Questionnaire.useContext One of the resource types defined as part of FHIR. Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use. Required Extensible http://hl7.org/fhir/valueset/resource-types ResourceType Context of Use ValueSet
Questionnaire.concept
Questionnaire.item.concept
Codes for groupings of questionnaire questions. Codes for questionnaires, groups and individual questions Example Questionnaire Question Codes Questionnaire Question Codes
Questionnaire.subjectType Codes corresponding to individual questions. One of the resource types defined as part of FHIR. Example Required Questionnaire Question Codes http://hl7.org/fhir/valueset/resource-types Questionnaire.group.question.type ResourceType
Questionnaire.item.type The expected format of an answer. Distinguishes groups from questions and display text and indicates data type for questions Required AnswerFormat QuestionnaireItemType
Questionnaire.item.option.value[x] Allowed values to answer questions. Allowed values to answer questions. Example Questionnaire Answer Codes Questionnaire Answer Codes

4.26.4.2 Constraints 2.29.4.2 Constraints

  • que-1 : On Questionnaire.group: Groups may either contain questions or groups but not both (xpath on f:Questionnaire/f:group: not(exists(f:group) and exists(f:question)) : On Questionnaire.item: Group items must have nested items, display items cannot have nested items ( expression on Questionnaire.item: (type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty()) )
  • que-10 : On Questionnaire.item: Maximum length can only be declared for simple question types ( expression on Questionnaire.item: (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or maxLength.empty() )
  • que-2 : The link ids for groups and questions must be unique within the questionnaire (xpath: count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value)) : The link ids for groups and questions must be unique within the questionnaire ( expression : descendants().linkId.isDistinct() )
  • que-3 : If root group must be "required" (xpath: f:group/f:required/@value=true() : On Questionnaire.item: Display items cannot have a "concept" asserted ( expression on Questionnaire.item: type!='display' or concept.empty() )
  • que-4 : On Questionnaire.group.question: A question must use either option or options, not both (xpath on f:Questionnaire/f:group/f:question: not(f:options and f:option) : On Questionnaire.item: A question cannot have both option and options ( expression on Questionnaire.item: option.empty() or options.empty() )
  • 4.26.5 que-5 : On Questionnaire.item: Only 'choice' items can have options ( expression on Questionnaire.item: (type ='choice' or type = 'open-choice') or (options.empty() and option.empty()) Notes: )
  • que-6 : On Questionnaire.item: Required and repeat aren't permitted for display items ( expression Questionnaires may be used to represent predefined forms or panels, referenced using Questionnaire.group.concept. on Questionnaire.item: type!='display' or (required.empty() and repeats.empty()) )
  • A Questionnaire's contents are placed inside its single nested Group, which may contain Questions or subgroups with Questions. que-7 : On Questionnaire.item.enableWhen: enableWhen must contain either an 'answer' or an 'answered' element ( expression on Questionnaire.item.enableWhen: hasAnswer.exists() xor answer.exists() )
  • Groups and Questions may have linkIds allowing groups and question answers captured in a QuestionnaireResponse to be associated with their corresponding group or question. que-8 : On Questionnaire.item: Default values can't be specified for groups or display items ( expression on Questionnaire.item: (type!='group' and type!='display') or initial.empty() )
  • Questionnaire allows for flexible naming and structuring of its contents to reflect the flexible and varying nature of forms and questionnaires. It explicitly does not try to standardize or streamline exchange of its contents outside its context of use, although exchanging partners may further constrain its structure and flexibility using profiles to define standardized, reusable forms. que-9 : On Questionnaire.item: Read-only can't be specified for "display" items ( expression on Questionnaire.item: type!='display' or readOnly.empty() )
  • Because of the lack of explicit support for Questionnaires in HL7 v3 , CDA

2.29.5 Notes: Documents frequently used named sections with Observations to model Questionnaires. Such use cases should now utilize the Questionnaire Resource instead. The order of questions within groups, groups within groups and groups within questions is relevant and must be retained for display and capture.

  • Questionnaires may be used to represent predefined forms or panels, referenced using items of type "group"
  • Questions may be nested. The Questionnaire resource supports nested items beneath both items of type "group" (which doesn't capture an answer of its own) as well as beneath questions
  • Groups and Questions may have linkIds allowing groups and question answers captured in a QuestionnaireResponse to be associated with their corresponding group or question.
  • Questionnaire allows for flexible naming and structuring of its contents to reflect the flexible and varying nature of forms and questionnaires. It explicitly does not try to standardize or streamline exchange of its contents outside its context of use, although exchanging partners may further constrain its structure and flexibility using profiles to define standardized, reusable forms.
  • Because of the lack of explicit support for Questionnaires in HL7 v3 , CDA Documents frequently used named sections with Observations to model Questionnaires. Such use cases should now use the Questionnaire Resource instead.
  • The order of questions within groups, groups within groups and groups within questions is relevant and must be retained for display and capture.
  • Display items allow the inclusion of instructions, background information and similar content within a questionnaire.

4.26.5.1 Using Questionnaires versus using Resources 2.29.5.1 Using Questionnaires versus using Resources There is considerable overlap between the information covered by

There is considerable overlap between the information covered by Questionnaires and other Resources (especially and other Resources (especially FamilyMemberHistory , , MedicationStatement , , Observation , , Procedure , etc.): , etc.): Questionnaire's flexible structure can easily be misused to capture any data, even data that should be captured as separate Resources. The choice between using flexible structure can easily be misused to capture any data, even data that should be captured as separate Resources. The choice between using Questionnaires or separate Resources may be dictated by the procedure of collection and recording; e.g. if the data is captured as a physician-agreed (electronic) form, it might be impossible or undesirable to distill separate resources from it and capturing the data in a or separate Resources may be dictated by the procedure of collection and recording; e.g. if the data is captured as a physician-agreed (electronic) form, it might be impossible or undesirable to distill separate resources from it and capturing the data in a Questionnaire would be most appropriate. However, data captured only in would be most appropriate.

However, data captured only in Questionnaires can be difficult to query after-the-fact. Queries against other Resources will not return data captured only in can be difficult to query after-the-fact. Queries against other Resources will not return data captured only in Questionnaires , and querying against , and querying against Questionnaires directly may not find all desired data, depending on how the questions may have been phrased or encoded over time or by different clinicians. Moreover, interoperability of such directly may not find all desired data, depending on how the questions may have been phrased or encoded over time or by different clinicians. Moreover, interoperability of such Questionnaires is limited as interpretation of its contents is only known to the circle of parties that were involved in its definition: encoding data from such is limited, as interpretation of its contents is only known to the circle of parties that were involved in its definition: encoding data from such Questionnaires using other, more specific, Resources increases the ability and consistency with which it can be understood and queried. It is entirely possible for data to exist in both QuestionnaireResponse and in other resources. For example, data may be captured in using other, more specific, Resources increases the ability and consistency with which it can be understood and queried.

It is entirely possible for data to exist in both QuestionnaireResponse and in other resources. For example, data may be captured in QuestionnaireResponse as part of an intake questionnaire. That data may then be propagated into the as part of an intake questionnaire. That data may then be propagated into the Patient resource (demographics), resource (demographics), FamilyMemberHistory , , AllergyIntolerance , , MedicationStatement and and Observation resources to allow the data to be queried and analyzed. The original resources to allow the data to be queried and analyzed. The original QuestionnaireResponse instance can be retained for traceability purposes. For example, if a questionnaire question asks "what is your weight", that can then result in the creation of an instance can be retained for traceability purposes. If desired, a Provenance resource can be used to identify the Questionnaire as the data source for the other resources. For example, if a questionnaire question asks "what is your weight", that can then result in the creation of an Observation with the appropriate with the appropriate Observation.code and the specified answer as the and the specified answer as the Observation.valueQuantity . .

4.26.5.2 2.29.5.2 Structure of the Questionnaire Structure of the Questionnaire A Questionnaire is built out of three components: The main component is Questionnaire, which holds information

A Questionnaire is built out of two components:

  • The main component is Questionnaire, which holds information about the Questionnaire, like the identifier, publisher, date authored, etc. The Questionnaire contains one "root" Group, which contains all the content of the questionnaire. This "root" group contains elements that apply to the entire questionnaire - the title for the questionnaire, the concept that represents the meaning of the overall questionnaire (e.g. a code for "family history"), the text to the Questionnaire, like the identifier, publisher, date authored, title, etc. The Questionnaire contains zero or more items which define the content of the questionnaire. (Zero items allows for the possibility of narrative-only questionnaires, though obviously these provide little computable information.)
  • Items have one of three sub-types, distinguished by the type element:
    • display at the top of the questionnaire, etc. (In most cases, required would be 'true' and repeats would be false for the root items convey text to be rendered on the form that won't capture data and which won't contain nested items. This might include copyright or authorship information, instructions or other background.
    • group This Group can contain either nested Groups (to represent sections and subsections on a questionnaire form) or Questions. This way, any form containing sections or subsections can be represented, down to the actual questions. The Questions themselves may be simple questions with a prompt text and one expected answer, but they may also contain nested groups, each containing sets of nested questions. This way, one can model "panels" of questions which would only be relevant (and thus would only be displayed) depending on the answers of a parent question; e.g. a items organize content of the questionnaire into sections, sub-sections, etc. Groups don't have answers associated with them directly, but generally contain child 'question' items which do.
    • question "Did the patient receive treatment in the past six months?" would contain a nested group of questions asking for further details about the treatment. See an items ask a specific question to which an answer may be given. There isn't a single type for question items. Instead, the type conveys the data type of the answer for the question. If an item isn't a 'display' or a 'group', then it's a question. and actual "question" information which allows a particular type of answer to be gathered (and which may also have nested items). Questions may also have nested content - groups and/or other questions. This way, one can model "panels" of questions which would only be relevant (and thus would only be displayed) depending on the answers of a parent question; e.g. a question "Did the patient receive treatment in the past six months?" would contain a nested group of questions asking for further details about the treatment. See an example from the Australian New South Wales blue book from the Australian New South Wales blue book Specific controls on dynamic display of groups, questions, etc. based on the answers to other questions is outside the scope of the base resource and are expected to be introduced as extensions.

Specific controls on dynamic display of groups, questions, etc. based on the answers to other questions is outside the scope of the base resource and are handled using extensions.

4.26.5.3 2.29.5.3 Identifiers within Questionnaire Identifiers within Questionnaire There are three different "identifying" elements within Questionnaire:

There are three different "identifying" elements within Questionnaire: identifier , , id and and linkId . Each serves very distinct purposes: . Each serves very distinct purposes:

  • identifier is used to reference the overall questionnaire in business terms. It is the number printed across the top of the form or listed beside the form when making a choice between alternate forms. The is used to reference the overall questionnaire in business terms. It is the number printed across the top of the form or listed beside the form when making a choice between alternate forms.
  • The id attribute supported on each element is used for references within a resource, for example linking narrative to discrete elements The attribute supported on each element is used for references within a resource, for example linking narrative to discrete elements. Ids are not generally displayed to end users
  • The linkId element on questions and groups establishes a link between elements in a element on questions and groups establishes a link between elements in a QuestionnaireAnsers and their definition inside a Questionnaire. This is the and their definition inside a Questionnaire. This is the only way to link between the groups and questions in a Questionnaire and QuestionnaireResponse way to link between the groups and questions in a Questionnaire and QuestionnaireResponse. These are also not displayed to end users

4.26.5.4 2.29.5.4 Question Definitions Question Definitions Questionnaires can be crafted using any questions the author can conceive phrased in whatever manner is appropriate or convenient. However, standardization of questions and the constraints enforced on the accompanying answers increases the ability to compare data gathered across questionnaires. There are two mechanisms defined in the specification for linking a Question (or Group) to a standardized definition: The

Questionnaires can be crafted using any questions the author can conceive phrased in whatever manner is appropriate or convenient. However, standardization of questions and the constraints enforced on the accompanying answers increases the ability to compare data gathered across questionnaires. There are two mechanisms defined in the specification for linking a Question (or Group) to a standardized definition:

Linking to formal definitions of a question allows data captured by distinct questionnaires to be compared. If systems have the necessary mappings to the formal definition, linkages to formal definitions may also be used to automatically pre-populate or extract data from a corresponding QuestionnaireResponse resource. NOTE: Even if standard question definitions are referenced using resource.

NOTE: Even if standard question definitions are referenced using concept or the or the deReference extension, information such as the question text, data type and value set SHOULD still be declared for the question. Systems processing the questionnaire may not have access to or support the ability to look up the question definitions from external sources. If the information is not included in-line within the questionnaire, other systems may not be able to to render or use the Questionnaire. If an external reference ( extension, information such as the question text, data type and value set SHOULD still be declared for the question. Systems processing the questionnaire may not have access to or support the ability to look up the question definitions from external sources. If the information is not included in-line within the questionnaire, other systems may not be able to to render or use the Questionnaire.

If an external reference ( concept or or deReference extension) is included along with question information such as question text, data type or value set, it is expected that the content for the question and the referenced definition would be in alignment. However, FHIR does not dictate what degree of alignment is required; e.g. Does the question text need to match exactly? Is it legitimate for a question to constrain the allowed value set of possible answers? These rules will need to be established within implementation environments. extension) is included along with question information such as question text, data type or value set, it is expected that the content for the question and the referenced definition would be in alignment. However, FHIR does not dictate what degree of alignment is required; e.g. Does the question text need to match exactly? Is it legitimate for a question to constrain the allowed value set of possible answers? These rules will need to be established within implementation environments.

4.26.5.5 2.29.5.5 Question types Question types The codes for the data type for each question are slightly different than the data types allowed in the QuestionnaireResponse resource. Where the names are the same (ignoring case), the "answer" must use the specified type. Where the names are different, the mappings are as follows: Questionnaire AnswerFormat code

The codes for the data type for each question are slightly different than the data types allowed in the QuestionnaireResponse data type resource. Where the names are the same (ignoring case), the "answer" must use the specified type. Where the names are different, the mappings are as follows:

Questionnaire AnswerFormat code QuestionnaireResponse data type
text string
url uri
choice Coding
open-choice Coding

4.26.5.6 Permitted values for questions 2.29.5.6 Permitted values for questions Many questionnaires place constraints on the allowed list of values for a given question. FHIR supports this notion through the ...question.choices element. However, rather than listing the choices directly, the choices element points to a

Many questionnaires place constraints on the allowed list of values for a given question. FHIR supports this notion through the item.options or the item.option element.

The "choice" mechanism is simplest - all options are listed in-line with the question. Maintenance of the set of permitted question answers involves maintenance of the questionnaire itself.

The "choices" mechanism is more sophisticated. Rather than listing the choices directly, the choices element points to a ValueSet resource. This approach adds complexity for questionnaires having a simple list of strings as choices for a question, but provides several benefits: Questionnaires that reference codes from externally defined code systems have a means of doing so Answer sets can be shared across questions (and there are many questionnaires where this capability is useful) The full capability of value sets can be brought into play, including the ability to use ConceptMap to link and translate from questionnaire-specific codes to other codes, the use of multiple display names (e.g. different languages), the ability to use coded ordinals, the ability to allow choices from larger value sets (e.g. "all SNOMED CT procedure codes") resource. This approach adds complexity for questionnaires having a simple list of strings as choices for a question, but provides several benefits:

  • Questionnaires that reference codes from externally defined code systems have a means of doing so
  • Answer sets can be shared across questions (and there are many questionnaires where this capability is useful)
  • The full capability of value sets can be brought into play, including the ability to use ConceptMap to link and translate from questionnaire-specific codes to other codes, the use of multiple display names (e.g. different languages), the ability to use coded ordinals, the ability to allow choices from larger value sets (e.g. "all SNOMED CT procedure codes")
  • etc. In many cases, the set of code choices will be specific to a given questionnaire and should be maintained as part of the questionnaire. In this case, the referenced ValueSet can be included as a contained resource. All

In many cases, the set of code choices will be specific to a given questionnaire and should be maintained as part of the questionnaire. In this case, the referenced ValueSet can be included as a contained ValueSets are listed together and then are referenced by the individual questions as necessary. resource. All contained ValueSets are listed together and then are referenced by the individual questions as necessary. Alternatively, the "choices" element can reference the value set in a version-specific manner. This ensures that the Questionnaire will not adopt a new version of the referenced value set without revising the Questionnaire to point to that new version - putting the author of the Questionnaire in control of any changes.

4.26.5.7 2.29.5.7 Useful Value Sets Useful Value Sets Many questions have a set of possible codes for their answer. These value sets may be useful to help, and when referenced by full URL, do not need to be provided as part of the questionnaire:

Many questions have a set of possible codes for their answer. These value sets may be useful to help, and when referenced by full URL, do not need to be provided as part of the questionnaire:

4.26.5.8 2.29.5.8 Questions with multiple answer types Questions with multiple answer types In some questionnaires, it may be possible to respond to a question with multiple types of answers. For example, capturing a coded answer plus free text, capturing a coded value plus a numeric priority, etc. In FHIR, this is handled through nested questions. Each question has a single data type. However, each question can have nested child questions. These nested child questions can have text (e.g. "Please specify") or can have no text at all if the appropriate guidance is provided by the parent question or group.

In some questionnaires, it may be possible to respond to a question with multiple types of answers. For example, capturing a coded answer plus free text, capturing a coded value plus a numeric priority, etc. In FHIR, this is handled through nested questions. Each question has a single data type. However, each question can have nested child questions. These nested child questions can have text (e.g. "Please specify") or can have no text at all if the appropriate guidance is provided by the parent question or group.

4.26.5.9 2.29.5.9 Questionnaires with Math Questionnaires with Math While not defined (yet) at the international level, extensions may be defined to perform mathematical functions on questionnaire responses. For example, tabulating scores. One extension that is defined that may be useful in this process is the Ordinal extension. This allows a numeric value to be associated with a coded data element. There are two extensions defined - one for defining the numeric weighting of a code defined in a value set -

While not defined (yet) as part of the FHIR specification, extensions may be defined to perform mathematical functions on questionnaire responses. For example, tabulating scores. One extension that is defined that may be useful in this process is the Ordinal extension. This allows a numeric value to be associated with a coded data element. There are two extensions defined - one for defining the numeric weighting of a code defined in a value set - valueset-ordinalValue and the other is a code that can appear within a Coding itself - and the other is a code that can appear within a Coding itself - iso21090-CO-value . 4.26.5.10 Extensions for Additional capabilities The core elements defined in the questionnaire resource are sufficient for simple questionnaires. For more sophisticated capabilities, a number of "common" extensions are defined in the Questionnaire Core extensions and the Element extensions profiles. For example, strict control over allowed number of conditions, conditional display of questionnaire content, etc. The conditional display extension [enable-when] can be used to enable groups nested beneath a question based on the selection of a specific answer, giving the behavior of "questions under answers" where this sort of more sophisticated behavior is needed. .

4.26.6 Search Parameters 2.29.6 Search Parameters Search parameters for this resource. The common parameters also apply. See

Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services. for more information about searching in REST, messaging, and services.

© HL7.org 2011+. FHIR DSTU2 (v1.0.2-7202) generated on Sat, Oct 24, 2015 07:44+1100. Links: Search | Version History | Table of Contents | Compare to DSTU1
Name Type Description Paths
code token A code that corresponds to the questionnaire or one of its groups A code that corresponds to the questionnaire or one of its groups Questionnaire.group.concept Questionnaire.item.concept
context token A use context assigned to the questionnaire Questionnaire.useContext
date date When the questionnaire was last changed When the questionnaire was last changed Questionnaire.date
identifier token An identifier for the questionnaire An identifier for the questionnaire Questionnaire.identifier
publisher string The author of the questionnaire The author of the questionnaire Questionnaire.publisher
status token The status of the questionnaire The status of the questionnaire Questionnaire.status
title string All or part of the name of the questionnaire (title for the root group of the questionnaire) All or part of the name of the questionnaire Questionnaire.group.title Questionnaire.title
version string The business version of the questionnaire The business version of the questionnaire Questionnaire.version