Connectathon 11 Snapshot

This page is part of the FHIR Specification (v1.2.0: STU 3 Draft). The current version which supercedes this version is 4.0.1. For a full list of available versions, see the Directory of published versions

Sdc\sdc-response-questionnaire.json

Raw JSON (canonical form)

Generated Questionnaire for sdc-response

{
  "resourceType": "Questionnaire",
  "id": "qs1",
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "vs2",
      "name": "Type options for QuestionnaireResponse.author",
      "status": "active",
      "description": "Type options for QuestionnaireResponse.author",
      "expansion": {
        "identifier": "urn:uuid:49f08677-a522-49c3-974e-10d5a2b26fa4",
        "timestamp": "2015-12-11T17:44:13+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Device",
            "display": "Device"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "RelatedPerson",
            "display": "RelatedPerson"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs3",
      "name": "Type options for QuestionnaireResponse.source",
      "status": "active",
      "description": "Type options for QuestionnaireResponse.source",
      "expansion": {
        "identifier": "urn:uuid:c0ac0600-b60a-4360-9547-617e1df92ece",
        "timestamp": "2015-12-11T17:44:13+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "RelatedPerson",
            "display": "RelatedPerson"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs4",
      "name": "Type options for QuestionnaireResponse.item.answer.value[x]",
      "status": "active",
      "description": "Type options for QuestionnaireResponse.item.answer.value[x]",
      "expansion": {
        "identifier": "urn:uuid:69f69b6b-9e50-4ca9-9cac-9800f5a99d2e",
        "timestamp": "2015-12-11T17:44:13+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "boolean",
            "display": "boolean"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "date",
            "display": "date"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "dateTime",
            "display": "dateTime"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "time",
            "display": "time"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "instant",
            "display": "instant"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "decimal",
            "display": "decimal"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "integer",
            "display": "integer"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "string",
            "display": "string"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Coding",
            "display": "Coding"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "uri",
            "display": "uri"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Quantity",
            "display": "Quantity"
          },
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "Attachment",
            "display": "Attachment"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Resource",
            "display": "Resource"
          }
        ]
      }
    }
  ],
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986"
    }
  ],
  "status": "draft",
  "date": "2014-04-21T00:00:00+10:00",
  "publisher": "Health Level Seven International (Orders and Observations - Structured Data Capture)",
  "item": [
    {
      "linkId": "QuestionnaireResponse",
      "text": "A structured set of questions and their answers",
      "type": "group",
      "required": false,
      "repeats": true,
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "flyover",
                    "display": "Fly-over"
                  }
                ]
              }
            }
          ],
          "text": "Sets expectations for supported capabilities for questionnaire responses for SDC-conformant systems.",
          "type": "display"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "string"
            }
          ],
          "linkId": "QuestionnaireResponse.id",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.id.value",
              "text": "Logical id of this artifact",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "QuestionnaireResponse.meta",
          "text": "Metadata about the resource",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "uri"
            }
          ],
          "linkId": "QuestionnaireResponse.implicitRules",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.implicitRules.value",
              "text": "A set of rules under which this content was created",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "code"
            }
          ],
          "linkId": "QuestionnaireResponse.language",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The base language in which the resource is written. Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.language.value",
              "text": "language",
              "type": "choice",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "QuestionnaireResponse.text",
          "text": "Text summary of the resource, for human interpretation",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety. Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "QuestionnaireResponse.contained",
          "text": "Contained, inline Resources",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope. This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "QuestionnaireResponse.extension",
          "text": "Additional Content defined by implementations",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
              "type": "display"
            }
          ]
        },
        {
          "linkId": "QuestionnaireResponse.modifierExtension",
          "text": "Extensions that cannot be ignored",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Identifier"
            }
          ],
          "linkId": "QuestionnaireResponse.identifier",
          "text": "Unique id for this set of answers",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "A business identifier assigned to a particular completed (or partially completed) questionnaire.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.identifier.label",
              "text": "label:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "QuestionnaireResponse.identifier.system",
              "text": "system:",
              "type": "string",
              "required": false,
              "repeats": false
            },
            {
              "linkId": "QuestionnaireResponse.identifier.value",
              "text": "value:",
              "type": "string",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "QuestionnaireResponse.questionnaire",
          "type": "group",
          "required": true,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Indicates the Questionnaire resource that defines the form for which answers are being provided.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "sdc-questionnaire"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "QuestionnaireResponse.questionnaire.value",
              "text": "Form being answered",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "code"
            }
          ],
          "linkId": "QuestionnaireResponse.status",
          "type": "group",
          "required": true,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The lifecycle status of the questionnaire response as a whole.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.status.value",
              "text": "status",
              "type": "choice",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "QuestionnaireResponse.subject",
          "type": "group",
          "required": true,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The subject of the questionnaire response.  This could be a patient, organization, practitioner, device, etc.  This is who/what the answers apply to, but is not necessarily the source of information.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "Patient"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "QuestionnaireResponse.subject.value",
              "text": "The subject of the questions",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "QuestionnaireResponse.author",
          "text": "Person who received and recorded the answers",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system. Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation.  Authoring by device would indicate that some portion of the questionnaire had been auto-populated.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.author._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs2"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.author._Device",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Device"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.author._Device.value",
                      "text": "Device",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.author._Practitioner",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Practitioner"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.author._Practitioner.value",
                      "text": "Practitioner",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.author._Patient",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Patient"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.author._Patient.value",
                      "text": "Patient",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.author._RelatedPerson",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "RelatedPerson"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.author._RelatedPerson.value",
                      "text": "RelatedPerson",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "datetime"
            }
          ],
          "linkId": "QuestionnaireResponse.authored",
          "type": "group",
          "required": true,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Identifies when this version of the answer set was created.  Changes whenever the answers are updated. May be different from the update time of the resource itself, because that is the status of the collection and authoring.  This element is optional to allow for systems that may not know the value, however it SHOULD be populated if possible.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.authored.value",
              "text": "Date this version was authored",
              "type": "dateTime",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            }
          ],
          "linkId": "QuestionnaireResponse.source",
          "text": "The person who answered the questions",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "The person who answered the questions about the subject. If not specified, no inference can be made about who provided the data.",
              "type": "display"
            },
            {
              "linkId": "QuestionnaireResponse.source._type",
              "text": "type",
              "type": "choice",
              "required": false,
              "repeats": false,
              "options": {
                "reference": "#vs3"
              },
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.source._Patient",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Patient"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.source._Patient.value",
                      "text": "Patient",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.source._Practitioner",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "Practitioner"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.source._Practitioner.value",
                      "text": "Practitioner",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "Reference"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.source._RelatedPerson",
                  "type": "group",
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                          "valueCode": "RelatedPerson"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                          "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                        }
                      ],
                      "linkId": "QuestionnaireResponse.source._RelatedPerson.value",
                      "text": "RelatedPerson",
                      "type": "reference",
                      "required": false,
                      "repeats": false
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
              "valueString": "Reference"
            }
          ],
          "linkId": "QuestionnaireResponse.encounter",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                  "valueCode": "Encounter"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                }
              ],
              "linkId": "QuestionnaireResponse.encounter.value",
              "text": "Primary encounter during which the answers were collected",
              "type": "reference",
              "required": false,
              "repeats": false
            }
          ]
        },
        {
          "linkId": "QuestionnaireResponse.item",
          "text": "Groups and questions",
          "type": "group",
          "required": false,
          "repeats": true,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "text": "Corresponds to a group or question item from the original questionnaire.",
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "string"
                }
              ],
              "linkId": "QuestionnaireResponse.item.id",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "unique id for the element within a resource (for internal references).",
                  "type": "display"
                },
                {
                  "linkId": "QuestionnaireResponse.item.id.value",
                  "text": "xml:id (or equivalent in JSON)",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "QuestionnaireResponse.item.extension",
              "text": "Additional Content defined by implementations",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                  "type": "display"
                }
              ]
            },
            {
              "linkId": "QuestionnaireResponse.item.modifierExtension",
              "text": "Extensions that cannot be ignored",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                  "type": "display"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "string"
                }
              ],
              "linkId": "QuestionnaireResponse.item.linkId",
              "type": "group",
              "required": true,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "Identifies the item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
                  "type": "display"
                },
                {
                  "linkId": "QuestionnaireResponse.item.linkId.value",
                  "text": "Corresponding item within Questionnaire",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "string"
                }
              ],
              "linkId": "QuestionnaireResponse.item.text",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "Text that is displayed above the contents of the group or as the text of the question being answered.",
                  "type": "display"
                },
                {
                  "linkId": "QuestionnaireResponse.item.text.value",
                  "text": "Name for group or question text",
                  "type": "string",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                  "valueInteger": 1
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                  "valueString": "Reference"
                }
              ],
              "linkId": "QuestionnaireResponse.item.subject",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "More specific subject this section's answers are about, details the subject given in QuestionnaireResponse.",
                  "type": "display"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                      "valueCode": "Resource"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                      "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.item.subject.value",
                  "text": "The subject this group's answers are about",
                  "type": "reference",
                  "required": false,
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "QuestionnaireResponse.item.answer",
              "text": "The response(s) to the question",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "text": "The value is nested because we cannot have a repeating structure that has variable type.",
                  "type": "display"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "The respondent's answer(s) to the question.",
                  "type": "display"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                      "valueInteger": 1
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                      "valueString": "string"
                    }
                  ],
                  "linkId": "QuestionnaireResponse.item.answer.id",
                  "type": "group",
                  "required": false,
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "flyover",
                                "display": "Fly-over"
                              }
                            ]
                          }
                        }
                      ],
                      "text": "unique id for the element within a resource (for internal references).",
                      "type": "display"
                    },
                    {
                      "linkId": "QuestionnaireResponse.item.answer.id.value",
                      "text": "xml:id (or equivalent in JSON)",
                      "type": "string",
                      "required": false,
                      "repeats": false
                    }
                  ]
                },
                {
                  "linkId": "QuestionnaireResponse.item.answer.extension",
                  "text": "Additional Content defined by implementations",
                  "type": "group",
                  "required": false,
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "flyover",
                                "display": "Fly-over"
                              }
                            ]
                          }
                        }
                      ],
                      "text": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                      "type": "display"
                    }
                  ]
                },
                {
                  "linkId": "QuestionnaireResponse.item.answer.modifierExtension",
                  "text": "Extensions that cannot be ignored",
                  "type": "group",
                  "required": false,
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "flyover",
                                "display": "Fly-over"
                              }
                            ]
                          }
                        }
                      ],
                      "text": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
                      "type": "display"
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                      "valueInteger": 1
                    }
                  ],
                  "linkId": "QuestionnaireResponse.item.answer.value[x]",
                  "text": "Single-valued answer to the question",
                  "type": "group",
                  "required": false,
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "flyover",
                                "display": "Fly-over"
                              }
                            ]
                          }
                        }
                      ],
                      "text": "The answer (or one of the answers) provided by the respondent to the question. More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.",
                      "type": "display"
                    },
                    {
                      "linkId": "QuestionnaireResponse.item.answer.value[x]._type",
                      "text": "type",
                      "type": "choice",
                      "required": false,
                      "repeats": false,
                      "options": {
                        "reference": "#vs4"
                      },
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "boolean"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._boolean",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._boolean.value",
                              "text": "boolean",
                              "type": "boolean",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "datetime"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._date",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._date.value",
                              "text": "date",
                              "type": "dateTime",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "datetime"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._dateTime",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._dateTime.value",
                              "text": "dateTime",
                              "type": "dateTime",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "time"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._time",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._time.value",
                              "text": "time",
                              "type": "time",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "instant"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._instant",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._instant.value",
                              "text": "instant",
                              "type": "instant",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "decimal"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._decimal",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._decimal.value",
                              "text": "decimal",
                              "type": "decimal",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "integer"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._integer",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._integer.value",
                              "text": "integer",
                              "type": "integer",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "string"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._string",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._string.value",
                              "text": "string",
                              "type": "string",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "Coding"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._Coding",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Coding.value",
                              "text": "Coding",
                              "type": "open-choice",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "uri"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._uri",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._uri.value",
                              "text": "uri",
                              "type": "string",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "Quantity"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._Quantity",
                          "text": "Quantity",
                          "type": "group",
                          "item": [
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Quantity.comparator",
                              "text": "comp:",
                              "type": "choice",
                              "required": false,
                              "repeats": false
                            },
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Quantity.value",
                              "text": "value:",
                              "type": "decimal",
                              "required": false,
                              "repeats": false
                            },
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Quantity.units",
                              "text": "units:",
                              "type": "string",
                              "required": false,
                              "repeats": false
                            },
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Quantity.code",
                              "text": "coded units:",
                              "type": "string",
                              "required": false,
                              "repeats": false
                            },
                            {
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Quantity.system",
                              "text": "units system:",
                              "type": "string",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "Attachment"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._Attachment",
                          "text": "Attachment",
                          "type": "group"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
                              "valueString": "Reference"
                            }
                          ],
                          "linkId": "QuestionnaireResponse.item.answer.value[x]._Resource",
                          "type": "group",
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
                                  "valueCode": "Resource"
                                },
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
                                  "valueString": "subject=$subj&patient=$subj&encounter=$encounter"
                                }
                              ],
                              "linkId": "QuestionnaireResponse.item.answer.value[x]._Resource.value",
                              "text": "Resource",
                              "type": "reference",
                              "required": false,
                              "repeats": false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "linkId": "QuestionnaireResponse.item.answer.item",
                  "text": "Nested groups and questions",
                  "type": "group",
                  "required": false,
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "flyover",
                                "display": "Fly-over"
                              }
                            ]
                          }
                        }
                      ],
                      "text": "Nested groups and/or questions found within this particular answer.",
                      "type": "display"
                    }
                  ]
                }
              ]
            },
            {
              "linkId": "QuestionnaireResponse.item.item",
              "text": "Nested questionnaire response items",
              "type": "group",
              "required": false,
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "flyover",
                            "display": "Fly-over"
                          }
                        ]
                      }
                    }
                  ],
                  "text": "Questions or sub-groups nested beneath a question or group.",
                  "type": "display"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.