> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Questionnaire

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

## Properties

| Name                | Required | Type                                                                                                                                                                                                                                        | Description                                                                         |
| ------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| url                 | No       | uri                                                                                                                                                                                                                                         | Canonical identifier for this questionnaire, represented as a URI (globally unique) |
| identifier          | No       | [Identifier](/medical-api/fhir/data-types/identifier)\[]                                                                                                                                                                                    | Additional identifier for the questionnaire                                         |
| version             | No       | string                                                                                                                                                                                                                                      | Business version of the questionnaire                                               |
| name                | No       | string                                                                                                                                                                                                                                      | Name for this questionnaire (computer friendly)                                     |
| title               | No       | string                                                                                                                                                                                                                                      | Name for this questionnaire (human friendly)                                        |
| derivedFrom         | No       | canonical\[]                                                                                                                                                                                                                                | Instantiates protocol or definition                                                 |
| status              | Yes      | code                                                                                                                                                                                                                                        | draft / active / retired / unknown                                                  |
| experimental        | No       | boolean                                                                                                                                                                                                                                     | For testing purposes, not real usage                                                |
| subjectType         | No       | code\[]                                                                                                                                                                                                                                     | Resource that can be subject of QuestionnaireResponse                               |
| date                | No       | dateTime                                                                                                                                                                                                                                    | Date last changed                                                                   |
| publisher           | No       | string                                                                                                                                                                                                                                      | Name of the publisher (organization or individual)                                  |
| contact             | No       | [ContactDetail](/medical-api/fhir/data-types/contactdetail)\[]                                                                                                                                                                              | Contact details for the publisher                                                   |
| description         | No       | markdown                                                                                                                                                                                                                                    | Natural language description of the questionnaire                                   |
| useContext          | No       | [UsageContext](/medical-api/fhir/data-types/usagecontext)\[]                                                                                                                                                                                | The context that the content is intended to support                                 |
| jurisdiction        | No       | [CodeableConcept](/medical-api/fhir/data-types/codeableconcept)\[]                                                                                                                                                                          | Intended jurisdiction for questionnaire (if applicable)                             |
| purpose             | No       | markdown                                                                                                                                                                                                                                    | Why this questionnaire is defined                                                   |
| copyright           | No       | markdown                                                                                                                                                                                                                                    | Use and/or publishing restrictions                                                  |
| approvalDate        | No       | date                                                                                                                                                                                                                                        | When the questionnaire was approved by publisher                                    |
| lastReviewDate      | No       | date                                                                                                                                                                                                                                        | When the questionnaire was last reviewed                                            |
| effectivePeriod     | No       | [Period](/medical-api/fhir/data-types/period)                                                                                                                                                                                               | When the questionnaire is expected to be used                                       |
| code                | No       | [Coding](/medical-api/fhir/data-types/coding)\[]                                                                                                                                                                                            | Concept that represents the overall questionnaire                                   |
| item                | No       | QuestionnaireItem                                                                                                                                                                                                                           | Questions and sections within the Questionnaire                                     |
| - id                | No       | string                                                                                                                                                                                                                                      | Unique id for inter-element referencing                                             |
| - extension         | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Additional content defined by implementations                                       |
| - modifierExtension | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Extensions that cannot be ignored even if unrecognized                              |
| - linkId            | Yes      | string                                                                                                                                                                                                                                      | Unique id for item in questionnaire                                                 |
| - definition        | No       | uri                                                                                                                                                                                                                                         | ElementDefinition - details for the item                                            |
| - code              | No       | [Coding](/medical-api/fhir/data-types/coding)\[]                                                                                                                                                                                            | Corresponding concept for this item in a terminology                                |
| - prefix            | No       | string                                                                                                                                                                                                                                      | E.g. "1(a)", "2.5.3"                                                                |
| - text              | No       | string                                                                                                                                                                                                                                      | Primary text for the item                                                           |
| - type              | Yes      | code                                                                                                                                                                                                                                        | group / display / boolean / decimal / integer / date / dateTime +                   |
| - enableWhen        | No       | QuestionnaireItemEnableWhen                                                                                                                                                                                                                 | Only allow data when                                                                |
| - id                | No       | string                                                                                                                                                                                                                                      | Unique id for inter-element referencing                                             |
| - extension         | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Additional content defined by implementations                                       |
| - modifierExtension | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Extensions that cannot be ignored even if unrecognized                              |
| - question          | Yes      | string                                                                                                                                                                                                                                      | Question that determines whether item is enabled                                    |
| - operator          | Yes      | code                                                                                                                                                                                                                                        | exists / = / != / > / \< / >= / \<=                                                 |
| - answer\[x]        | Yes      | boolean, decimal, integer, date, dateTime, time, string, [Coding](/medical-api/fhir/data-types/coding), [Quantity](/medical-api/fhir/data-types/quantity), Reference\<Resource>                                                             | Value for question comparison based on operator                                     |
| - enableBehavior    | No       | code                                                                                                                                                                                                                                        | all / any                                                                           |
| - required          | No       | boolean                                                                                                                                                                                                                                     | Whether the item must be included in data results                                   |
| - repeats           | No       | boolean                                                                                                                                                                                                                                     | Whether the item may repeat                                                         |
| - readOnly          | No       | boolean                                                                                                                                                                                                                                     | Don't allow human editing                                                           |
| - maxLength         | No       | integer                                                                                                                                                                                                                                     | No more than this many characters                                                   |
| - answerValueSet    | No       | canonical                                                                                                                                                                                                                                   | Valueset containing permitted answers                                               |
| - answerOption      | No       | QuestionnaireItemAnswerOption                                                                                                                                                                                                               | Permitted answer                                                                    |
| - id                | No       | string                                                                                                                                                                                                                                      | Unique id for inter-element referencing                                             |
| - extension         | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Additional content defined by implementations                                       |
| - modifierExtension | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Extensions that cannot be ignored even if unrecognized                              |
| - value\[x]         | Yes      | integer, date, time, string, [Coding](/medical-api/fhir/data-types/coding), Reference\<Resource>                                                                                                                                            | Answer value                                                                        |
| - initialSelected   | No       | boolean                                                                                                                                                                                                                                     | Whether option is selected by default                                               |
| - initial           | No       | QuestionnaireItemInitial                                                                                                                                                                                                                    | Initial value(s) when item is first rendered                                        |
| - id                | No       | string                                                                                                                                                                                                                                      | Unique id for inter-element referencing                                             |
| - extension         | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Additional content defined by implementations                                       |
| - modifierExtension | No       | [Extension](/medical-api/fhir/data-types/extension)\[]                                                                                                                                                                                      | Extensions that cannot be ignored even if unrecognized                              |
| - value\[x]         | Yes      | boolean, decimal, integer, date, dateTime, time, string, uri, [Attachment](/medical-api/fhir/data-types/attachment), [Coding](/medical-api/fhir/data-types/coding), [Quantity](/medical-api/fhir/data-types/quantity), Reference\<Resource> | Actual value for initializing the question                                          |
| - item              | No       | \[]                                                                                                                                                                                                                                         | Nested questionnaire items                                                          |

## Search Parameters

| Name                  | Type      | Description                                                                         | Expression                     |
| --------------------- | --------- | ----------------------------------------------------------------------------------- | ------------------------------ |
| code                  | token     | A code that corresponds to one of its items in the questionnaire                    | Questionnaire.item.code        |
| context               | token     | A use context assigned to the questionnaire                                         | Questionnaire.useContext.value |
| context-quantity      | quantity  | A quantity- or range-valued use context assigned to the questionnaire               | Questionnaire.useContext.value |
| context-type          | token     | A type of use context assigned to the questionnaire                                 | Questionnaire.useContext.code  |
| date                  | date      | The questionnaire publication date                                                  | Questionnaire.date             |
| definition            | uri       | ElementDefinition - details for the item                                            | Questionnaire.item.definition  |
| description           | string    | The description of the questionnaire                                                | Questionnaire.description      |
| effective             | date      | The time during which the questionnaire is intended to be in use                    | Questionnaire.effectivePeriod  |
| identifier            | token     | External identifier for the questionnaire                                           | Questionnaire.identifier       |
| jurisdiction          | token     | Intended jurisdiction for the questionnaire                                         | Questionnaire.jurisdiction     |
| name                  | string    | Computationally friendly name of the questionnaire                                  | Questionnaire.name             |
| publisher             | string    | Name of the publisher of the questionnaire                                          | Questionnaire.publisher        |
| status                | token     | The current status of the questionnaire                                             | Questionnaire.status           |
| subject-type          | token     | Resource that can be subject of QuestionnaireResponse                               | Questionnaire.subjectType      |
| title                 | string    | The human-friendly name of the questionnaire                                        | Questionnaire.title            |
| url                   | uri       | The uri that identifies the questionnaire                                           | Questionnaire.url              |
| version               | token     | The business version of the questionnaire                                           | Questionnaire.version          |
| context-type-quantity | composite | A use context type and quantity- or range-based value assigned to the questionnaire | Questionnaire.useContext       |
| context-type-value    | composite | A use context type and value assigned to the questionnaire                          | Questionnaire.useContext       |

## Inherited Properties

| Name              | Required | Type                                                   | Description                                            |
| ----------------- | -------- | ------------------------------------------------------ | ------------------------------------------------------ |
| id                | No       | string                                                 | Logical id of this artifact                            |
| meta              | No       | [Meta](/medical-api/fhir/data-types/meta)              | Metadata about the resource                            |
| implicitRules     | No       | uri                                                    | A set of rules under which this content was created    |
| language          | No       | code                                                   | Language of the resource content                       |
| text              | No       | [Narrative](/medical-api/fhir/data-types/narrative)    | Text summary of the resource, for human interpretation |
| contained         | No       | Resource\[]                                            | Contained, inline Resources                            |
| extension         | No       | [Extension](/medical-api/fhir/data-types/extension)\[] | Additional content defined by implementations          |
| modifierExtension | No       | [Extension](/medical-api/fhir/data-types/extension)\[] | Extensions that cannot be ignored                      |

To view the FHIR specification for this resource, see [Questionnaire](https://www.hl7.org/fhir/StructureDefinition/Questionnaire).
