DSTU2

This page is part of the FHIR Specification (v0.0.82: (v1.0.2: DSTU 1). 2). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Questionnaire.profile.xml Questionnaire.profile.json

Raw JSON ( canonical form )

Profile StructureDefinition for questionnaire

{
  "resourceType": "Profile",

  "resourceType": "StructureDefinition",
  "id": "Questionnaire",
  "meta": {
    "lastUpdated": "2015-10-24T07:41:03.495+11:00"
  },

  "text": {
    "status": "generated",
    "div": "<div><pre>\r\n&lt;<a title=\"A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire\"><b>Questionnaire</b></a> xmlns=&quot;http://hl7.org/fhir&quot;&gt; <span style=\"float: right\"><a title=\"Documentation for this format\" href=\"formats.html\"><img alt=\"doco\" src=\"help.png\"/></a></span>\r\n &lt;!-- from <a href=\"resources.html\">Resource</a>: <a href=\"extensibility.html\">extension</a>, <a href=\"extensibility.html#modifierExtension\">modifierExtension</a>, language, <a href=\"narrative.html#Narrative\">text</a>, and <a href=\"references.html#contained\">contained</a> --&gt;\r\n &lt;<a title=\"The lifecycle status of the questionnaire as a whole (this element modifies the meaning of other elements)\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.status\"><span style=\"text-decoration: underline\"><b>status</b></span></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#code\">code</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>1..1</b></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"questionnaire-status.html\">draft | published | retired | in progress | completed | amended<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></a></span><span style=\"color: Gray\"> --&gt;</span>\r\n &lt;<a title=\"The date and/or time that this version of the questionnaire was authored.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.authored\"><b>authored</b></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#dateTime\">dateTime</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>1..1</b></span> <span style=\"color: navy\">Date this version was authored<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></span><span style=\"color: Gray\"> --&gt;</span>\r\n &lt;<a title=\"The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.subject\"><b>subject</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"patient.html#Patient\">Patient</a>|<a href=\"relatedperson.html#RelatedPerson\">RelatedPerson</a>)</span> <span style=\"color: navy\">The subject of the questions<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></span><span style=\"color: Gray\"> --&gt;</span>&lt;/subject&gt;\r\n &lt;<a title=\"Person who received the answers to the questions in the Questionnaire and recorded them in the system.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.author\"><b>author</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"practitioner.html#Practitioner\">Practitioner</a>|<a href=\"patient.html#Patient\">Patient</a>|<a href=\"relatedperson.html#RelatedPerson\">RelatedPerson</a>)</span> <span style=\"color: navy\">\r\n     Person who received and recorded the answers<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></span><span style=\"color: Gray\"> --&gt;</span>&lt;/author&gt;\r\n &lt;<a title=\"The person who answered the questions about the subject. Only used when this is not the subject him/herself.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.source\"><b>source</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"patient.html#Patient\">Patient</a>|<a href=\"practitioner.html#Practitioner\">Practitioner</a>|<a href=\"relatedperson.html#RelatedPerson\">RelatedPerson</a>)</span> <span style=\"color: navy\">\r\n     The person who answered the questions<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></span><span style=\"color: Gray\"> --&gt;</span>&lt;/source&gt;\r\n &lt;<a title=\"Structured name for a predefined list of questions this questionnaire is responding to.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.name\"><b>name</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-questionnaire-name.html\">Name/code for a predefined list of questions<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/name&gt;\r\n &lt;<a title=\"This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.identifier\"><b>identifier</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..*</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Identifier\">Identifier</a></span> <span style=\"color: navy\">External Ids for this questionnaire<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></span><span style=\"color: Gray\"> --&gt;</span>&lt;/identifier&gt;\r\n &lt;<a title=\"Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.encounter\"><b>encounter</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"encounter.html#Encounter\">Encounter</a>)</span> <span style=\"color: navy\">\r\n     Primary encounter during which the answers were collected<span title=\"This element is included in a summary view (See Search/Query)\" style=\"color: Navy\"> &sect;</span></span><span style=\"color: Gray\"> --&gt;</span>&lt;/encounter&gt;\r\n &lt;<a title=\"A group of questions to a possibly similarly grouped set of questions in the questionnaire.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group\"><b>group</b></a>&gt;  <span style=\"color: Gray\">&lt;!-- <span style=\"color: brown\"><b>0..1</b></span> Grouped questions --&gt;</span>\r\n  &lt;<a title=\"Structured name for a section of a predefined list of questions this questionnaire is responding to.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.name\"><b>name</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-questionnaire-group-name.html\">Code or name of the section on a questionnaire</a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/name&gt;\r\n  &lt;<a title=\"Text that is displayed above the contents of the group.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.header\"><b>header</b></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#string\">string</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: navy\">Text that is displayed above the contents of the group</span><span style=\"color: Gray\"> --&gt;</span>\r\n  &lt;<a title=\"Additional text for the group, used for display purposes.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.text\"><b>text</b></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#string\">string</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: navy\">Additional text for the group</span><span style=\"color: Gray\"> --&gt;</span>\r\n  &lt;<a title=\"More specific subject this section's answers are about, details the subject given in Questionnaire.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.subject\"><b>subject</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"resourcelist.html\">Any</a>)</span> <span style=\"color: navy\">The subject this group's answers are about</span><span style=\"color: Gray\"> --&gt;</span>&lt;/subject&gt;\r\n  &lt;<a title=\"A sub-group within a group. The ordering of groups within this group is relevant.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.group\"><b>group</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-3: Groups may either contain questions or groups but not both\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..*</b></span> <span style=\"color: darkgreen\">Content as for Questionnaire.group</span> <span style=\"color: navy\">Nested questionnaire group</span><span style=\"color: Gray\"> --&gt;</span>&lt;/group&gt;\r\n  &lt;<a title=\"Set of questions within this group. The order of questions within the group is relevant.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question\"><b>question</b></a>&gt;  <span style=\"color: Gray\">&lt;!-- <span title=\"Inv-3: Groups may either contain questions or groups but not both\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..*</b></span> Questions in this group --&gt;</span>\r\n   &lt;<a title=\"Structured name for the question that identifies this question within the Questionnaire or Group.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.name\"><b>name</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-2: Must supply a name, a question's text or both\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#CodeableConcept\">CodeableConcept</a></span> <span style=\"color: navy\"><a style=\"color: navy\" href=\"valueset-questionnaire-question-name.html\">Code or name of the question</a></span><span style=\"color: Gray\"> --&gt;</span>&lt;/name&gt;\r\n   &lt;<a title=\"Text of the question as it is shown to the user.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.text\"><b>text</b></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#string\">string</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-2: Must supply a name, a question's text or both\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..1</b></span> <span style=\"color: navy\">Text of the question as it is shown to the user</span><span style=\"color: Gray\"> --&gt;</span>\r\n   &lt;<a title=\"Single-valued answer to the question.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.answer_x_\"><b>answer[x]</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-1: Must supply either a simple answer, a choice, data or nothing\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#decimal\">decimal</a>|<a href=\"datatypes.html#integer\">integer</a>|<a href=\"datatypes.html#boolean\">boolean</a>|<a href=\"datatypes.html#date\">date</a>|<a href=\"datatypes.html#string\">string</a>|<a href=\"datatypes.html#dateTime\">dateTime</a>|<a href=\"datatypes.html#instant\">instant</a></span> <span style=\"color: navy\">\r\n       Single-valued answer to the question</span><span style=\"color: Gray\"> --&gt;</span>&lt;/answer[x]&gt;\r\n   &lt;<a title=\"Selections made by the user from the list of options.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.choice\"><b>choice</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-1: Must supply either a simple answer, a choice, data or nothing\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..*</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#Coding\">Coding</a></span> <span style=\"color: navy\">Selected options</span><span style=\"color: Gray\"> --&gt;</span>&lt;/choice&gt;\r\n   &lt;<a title=\"Reference to a valueset containing the possible options.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.options\"><b>options</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: darkgreen\"><a href=\"references.html#Resource\">Resource</a>(<a href=\"valueset.html#ValueSet\">ValueSet</a>)</span> <span style=\"color: navy\">Valueset containing the possible options</span><span style=\"color: Gray\"> --&gt;</span>&lt;/options&gt;\r\n   &lt;<a title=\"Structured answer in the form of a FHIR Resource or datatype.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.data_x_\"><b>data[x]</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span title=\"Inv-1: Must supply either a simple answer, a choice, data or nothing\" style=\"color: brown\"><b><img alt=\"??\" src=\"lock.png\"/> 0..1</b></span> <span style=\"color: darkgreen\"><a href=\"datatypes.html#open\">*</a></span> <span style=\"color: navy\">Structured answer</span><span style=\"color: Gray\"> --&gt;</span>&lt;/data[x]&gt;\r\n   &lt;<a title=\"The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.remarks\"><b>remarks</b></a> value=&quot;[<span style=\"color: darkgreen\"><a href=\"datatypes.html#string\">string</a></span>]&quot;/&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..1</b></span> <span style=\"color: navy\">Remarks about the answer given</span><span style=\"color: Gray\"> --&gt;</span>\r\n   &lt;<a title=\"Nested group, containing nested question for this question. The order of groups within the question is relevant.\" class=\"dict\" href=\"questionnaire-definitions.html#Questionnaire.group.question.group\"><b>group</b></a>&gt;<span style=\"color: Gray\">&lt;!--</span> <span style=\"color: brown\"><b>0..*</b></span> <span style=\"color: darkgreen\">Content as for Questionnaire.group</span> <span style=\"color: navy\">Nested questionnaire group</span><span style=\"color: Gray\"> --&gt;</span>&lt;/group&gt;\r\n  &lt;/question&gt;\r\n &lt;/group&gt;\r\n&lt;/Questionnaire&gt;\r\n</pre></div>"

    "div": "<div>!-- Snipped for Brevity --></div>"

  },
  "name": "questionnaire",
  "publisher": "FHIR Project",
  "description": "Basic Profile. A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",

  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
  "name": "Questionnaire",

  "status": "draft",
  "date": "2014-09-30",
  "requirements": "Scope and Usage The Questionnaire may be a single list of questions, or can be hierarchically organized in groups and sub-groups, each containing questions. Questions may contain and single answer, which can take the form of simple text, numbers, dates or a set of coded choices. \r\n\r\nQuestionnaires cover the need to communicate data originating from forms used in medical history examinations, research questionnaires and sometimes full clinical speciality records. In many systems this data is collected using user-defined screens and forms. Questionnaires record specifics about data capture - exactly what questions were asked, in what order, what choices for answers were, etc. Each of these questions are part of the Questionnaire, and as such the Questionnaire is a separately identifiable Resource, whereas the individual questions are not. \r\n\r\nExamples of Questionnaires include:\r\n\r\n* Past medical history (PMH)\r\n* Family diseases\r\n* Social history\r\n* Research questionnaires\r\n* Quality and evaluation forms\r\nSupport for validation is outside the scope of this Resource, although basic structural features can be defined using the Questionnaire core extensions.",

  "publisher": "Health Level Seven International (Patient Care)",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
        }
      ]
    }
  ],
  "date": "2015-10-24T07:41:03+11:00",
  "description": "Base StructureDefinition for Questionnaire Resource",
  "requirements": "To support structured, hierarchical registration of data gathered using digital forms and other questionnaires.",
  "fhirVersion": "1.0.2",

  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"

    }
  ],
  "structure": [
    {
      "type": "Questionnaire",
      "publish": true,
      "element": [
        {
          "path": "Questionnaire",
          "definition": {
            "short": "A structured set of questions and their answers",
            "formal": "A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "Document[moodCode=DEF or EVN]"
              }
            ]

  "kind": "resource",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "Questionnaire",
        "short": "A structured set of questions",
        "definition": "A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
        "alias": [
          "Form",
          "CRF",
          "Survey"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "DomainResource"

          }
        },
        {
          "path": "Questionnaire.extension",
          "definition": {
            "short": "Additional Content defined by implementations",
            "formal": "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 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.",
            "comments": "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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false

        ],
        "constraint": [
          {
            "key": "que-3",
            "severity": "error",
            "human": "If root group must be \"required\"",
            "xpath": "f:group/f:required/@value=true()"
          },
          {
            "key": "que-2",
            "severity": "error",
            "human": "The link ids for groups and questions must be unique within the questionnaire",
            "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"

          }
        },
        {
          "path": "Questionnaire.modifierExtension",
          "definition": {
            "short": "Extensions that cannot be ignored",
            "formal": "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 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.",
            "comments": "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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false

        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Observation[moodCode=DEF]"
          },
          {
            "identity": "w5",
            "map": "infrastructure.information"

          }
        },
        {
          "path": "Questionnaire.text",
          "definition": {
            "short": "Text summary of the resource, for human interpretation",
            "formal": "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.",
            "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
            "synonym": [
              "narrative",
              "html",
              "xhtml",
              "display"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "isModifier": false

        ]
      },
      {
        "path": "Questionnaire.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comments": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"

          }
        },
        {
          "path": "Questionnaire.contained",
          "definition": {
            "short": "Contained, inline Resources",
            "formal": "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.",
            "comments": "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.",
            "synonym": [
              "inline resources",
              "anonymous resources",
              "contained resources"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false

        ],
        "isSummary": true
      },
      {
        "path": "Questionnaire.meta",
        "short": "Metadata about the resource",
        "definition": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"

          }
        },
        {
          "path": "Questionnaire.status",
          "definition": {
            "short": "draft | published | retired | in progress | completed | amended",
            "formal": "The lifecycle status of the questionnaire as a whole.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "binding": {
              "name": "QuestionnaireStatus",
              "isExtensible": false,
              "conformance": "required",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/questionnaire-status"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in progress\" from \"published)"
              }
            ]

        ],
        "isSummary": true
      },
      {
        "path": "Questionnaire.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"

          }
        },
        {
          "path": "Questionnaire.authored",
          "definition": {
            "short": "Date this version was authored",
            "formal": "The date and/or time that this version of the questionnaire was authored.",
            "comments": "May be different from the update time of the resource itself, because that is the status of the collection and authoring.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".participation[typeCode=AUT].time"
              }
            ]

        ],
        "isModifier": true,
        "isSummary": true
      },
      {
        "path": "Questionnaire.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "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).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"

          }
        },
        {
          "path": "Questionnaire.subject",
          "definition": {
            "short": "The subject of the questions",
            "formal": "The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Patient"
              },
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/RelatedPerson"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".participation[typeCode=SBJ].role"
              }
            ]

        ],
        "binding": {
          "strength": "required",
          "description": "A human language.",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "Questionnaire.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "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.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative"

          }
        },
        {
          "path": "Questionnaire.author",
          "definition": {
            "short": "Person who received and recorded the answers",
            "formal": "Person who received the answers to the questions in the Questionnaire and recorded them in the system.",
            "comments": "Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Practitioner"
              },
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Patient"
              },
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/RelatedPerson"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".participation[typeCode=AUT].role"
              }
            ]

        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"

          }
        },
        {
          "path": "Questionnaire.source",
          "definition": {
            "short": "The person who answered the questions",
            "formal": "The person who answered the questions about the subject. Only used when this is not the subject him/herself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Patient"
              },
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Practitioner"
              },
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/RelatedPerson"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".participation[typeCode=INF].role"
              }
            ]

        ]
      },
      {
        "path": "Questionnaire.contained",
        "short": "Contained, inline Resources",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"

          }
        },
        {
          "path": "Questionnaire.name",
          "definition": {
            "short": "Name/code for a predefined list of questions",
            "formal": "Structured name for a predefined list of questions this questionnaire is responding to.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "QuestionnaireName",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/questionnaire-name"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".title"
              }
            ]

        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"

          }
        },
        {
          "path": "Questionnaire.identifier",
          "definition": {
            "short": "External Ids for this questionnaire",
            "formal": "This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".id"
              }
            ]

        ]
      },
      {
        "path": "Questionnaire.extension",
        "short": "Additional Content defined by implementations",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"

          }
        },
        {
          "path": "Questionnaire.encounter",
          "definition": {
            "short": "Primary encounter during which the answers were collected",
            "formal": "Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Encounter"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
              }
            ]

        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"

          }
        },
        {
          "path": "Questionnaire.group",
          "definition": {
            "short": "Grouped questions",
            "formal": "A group of questions to a possibly similarly grouped set of questions in the questionnaire.",
            "comments": "The Questionnaire itself has one \"root\" group with the actual contents of the Questionnaire.",
            "min": 0,
            "max": "1",
            "constraint": [
              {
                "key": "3",
                "name": "GroupHaveSubOrQuestions",
                "severity": "error",
                "human": "Groups may either contain questions or groups but not both",
                "xpath": "not(exists(f:group) and exists(f:question))"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
              }
            ]

        ]
      },
      {
        "path": "Questionnaire.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"

          }
        },
        {
          "path": "Questionnaire.group.extension",
          "definition": {
            "short": "Additional Content defined by implementations",
            "formal": "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 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.",
            "comments": "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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false

        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"

          }
        },
        {
          "path": "Questionnaire.group.modifierExtension",
          "definition": {
            "short": "Extensions that cannot be ignored",
            "formal": "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 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.",
            "comments": "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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false

        ]
      },
      {
        "path": "Questionnaire.identifier",
        "short": "External identifiers for this questionnaire",
        "definition": "This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
        "requirements": "Need to allow connection to a wider workflow.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"

          }
        },
        {
          "path": "Questionnaire.group.name",
          "definition": {
            "short": "Code or name of the section on a questionnaire",
            "formal": "Structured name for a section of a predefined list of questions this questionnaire is responding to.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "QuestionnaireGroupName",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/questionnaire-group-name"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".code"
              }
            ]

        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id[use=BUS]"
          },
          {
            "identity": "w5",
            "map": "id"

          }
        },
        {
          "path": "Questionnaire.group.header",
          "definition": {
            "short": "Text that is displayed above the contents of the group",
            "formal": "Text that is displayed above the contents of the group.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".title"
              }
            ]

        ]
      },
      {
        "path": "Questionnaire.version",
        "short": "Logical identifier for this version of Questionnaire",
        "definition": "The version number assigned by the publisher for business reasons.  It may remain the same when the resource is updated.",
        "requirements": "In some cases, separate resource instances might be created for each version (if an older version can be maintained once a new version exists).",
        "alias": [
          "N/A - MIF rather than RIM level"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"

          }
        },
        {
          "path": "Questionnaire.group.text",
          "definition": {
            "short": "Additional text for the group",
            "formal": "Additional text for the group, used for display purposes.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".text"
              }
            ]

        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id[use=VER]"
          },
          {
            "identity": "w5",
            "map": "id.version"

          }
        },
        {
          "path": "Questionnaire.group.subject",
          "definition": {
            "short": "The subject this group's answers are about",
            "formal": "More specific subject this section's answers are about, details the subject given in Questionnaire.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/Any"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".participation[typeCode=SBJ].role\nor\n.outboundRelationship[typeCode=SUBJ].target"
              }
            ]

        ]
      },
      {
        "path": "Questionnaire.status",
        "short": "draft | published | retired",
        "definition": "The lifecycle status of the questionnaire as a whole.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"

          }
        },
        {
          "path": "Questionnaire.group.group",
          "definition": {
            "short": "Nested questionnaire group",
            "formal": "A sub-group within a group. The ordering of groups within this group is relevant.",
            "min": 0,
            "max": "*",
            "nameReference": "Questionnaire.group",
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
              }
            ]

        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Lifecycle status of the questionnaire.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-status"

          }
        },
        {
          "path": "Questionnaire.group.question",
          "definition": {
            "short": "Questions in this group",
            "formal": "Set of questions within this group. The order of questions within the group is relevant.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "2",
                "name": "MustHaveNameOrText",
                "severity": "error",
                "human": "Must supply a name, a question's text or both",
                "xpath": "count(f:name) + count(f:text) >= 1"
              },
              {
                "key": "1",
                "name": "SimpleChoiceOrData",
                "severity": "error",
                "human": "Must supply either a simple answer, a choice, data or nothing",
                "xpath": "count(f:data) + count(f:choice) + count(f:answer) <= 1"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN or DEF]"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
          },
          {
            "identity": "w5",
            "map": "status"
          }
        ]
      },
      {
        "path": "Questionnaire.date",
        "short": "Date this version was authored",
        "definition": "The date that this questionnaire was last changed.",
        "alias": [
          "Date created",
          "Date published",
          "Date issued",
          "Date updated"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "Questionnaire.publisher",
        "short": "Organization/individual who designed the questionnaire",
        "definition": "Organization or person responsible for developing and maintaining the questionnaire.",
        "requirements": "Conveys responsibility for the questions and their organization and also helps evaluate the questionnaire's \"authority\".",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "Questionnaire.telecom",
        "short": "Contact information of the publisher",
        "definition": "Contact details to assist a user in finding and communicating with the publisher.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role.telecom"
          }
        ]
      },
      {
        "path": "Questionnaire.subjectType",
        "short": "Resource that can be subject of QuestionnaireResponse",
        "definition": "Identifies the types of subjects that can be the subject of the questionnaire.",
        "comments": "If none are specified, then the subject is unlimited.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "One of the resource types defined as part of FHIR.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/resource-types"

          }
        },
        {
          "path": "Questionnaire.group.question.extension",
          "definition": {
            "short": "Additional Content defined by implementations",
            "formal": "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 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.",
            "comments": "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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false

        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode"
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Group"
          }
        ],
        "path": "Questionnaire.group",
        "name": "group",
        "short": "Grouped questions",
        "definition": "A collection of related questions (or further groupings of questions).",
        "comments": "The Questionnaire itself has one \"root\" group with the actual contents of the Questionnaire.  Information on this root group applies to the questionnaire as a whole.",
        "requirements": "Need to be able to logically group answers to grouped questions.",
        "alias": [
          "Section"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "que-3"
        ],
        "constraint": [
          {
            "key": "que-1",
            "severity": "error",
            "human": "Groups may either contain questions or groups but not both",
            "xpath": "not(exists(f:group) and exists(f:question))"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Questionnaire.group.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Questionnaire.group.extension",
        "short": "Additional Content defined by implementations",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Questionnaire.group.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Questionnaire.group.linkId",
        "short": "To link questionnaire with questionnaire response",
        "definition": "An identifier that is unique within the Questionnaire allowing linkage to the equivalent group in a QuestionnaireResponse resource.",
        "comments": "May be omitted if there is no expectation to link answers back to a questionnaire.  This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
        "requirements": "[[[QuestionnaireResponse]]] does not require omitted groups to be included and may have some groups that repeat, so linkage based on position alone is not sufficient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Questionnaire.group.title",
        "short": "Name to be displayed for group",
        "definition": "The human-readable name for this section of the questionnaire.",
        "comments": "The title of the \"root\" group is the title for the questionnaire.",
        "requirements": "When including text for the questionnaire with the answers, sections may have a section header.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".title"
          }
        ]
      },
      {
        "path": "Questionnaire.group.concept",
        "short": "Concept that represents this section in a questionnaire",
        "definition": "Identifies a how this group of questions is known in a particular terminology such as LOINC.",
        "comments": "The code(s) for the \"root\" group apply to the questionnaire as a whole.",
        "requirements": "Allows linking of groups of questions (and complete Questionnaire resources) to formal terminologies.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "Codes for groupings of questionnaire questions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"

          }
        },
        {
          "path": "Questionnaire.group.question.modifierExtension",
          "definition": {
            "short": "Extensions that cannot be ignored",
            "formal": "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 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.",
            "comments": "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 simplicity for everyone.",
            "synonym": [
              "extensions",
              "user content"
            ],
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": false

        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Questionnaire.group.text",
        "short": "Additional text for the group",
        "definition": "Additional text for the group, used for display purposes.",
        "comments": "Common extensions are defined for more specialized types of display text.",
        "requirements": "When including text for the questionnaire, each section may contain additional explanations are background text.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "Questionnaire.group.required",
        "short": "Whether the group must be included in data results",
        "definition": "If true, indicates that the group must be present and have required questions within it answered.  If false, the group may be skipped when answering the questionnaire.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.repeats",
        "short": "Whether the group may repeat",
        "definition": "Whether the group may occur multiple times in the instance, containing multiple sets of answers.",
        "requirements": "Groups may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.group",
        "short": "Nested questionnaire group",
        "definition": "A sub-group within a group. The ordering of groups within this group is relevant.",
        "requirements": "Reports can consist of complex nested groups.",
        "min": 0,
        "max": "*",
        "nameReference": "group",
        "condition": [
          "que-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Question"
          }
        ],
        "path": "Questionnaire.group.question",
        "short": "Questions in this group",
        "definition": "Set of questions within this group. The order of questions within the group is relevant.",
        "requirements": "Must register answers to questions.",
        "alias": [
          "Responses",
          "Contents"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "que-1"
        ],
        "constraint": [
          {
            "key": "que-4",
            "severity": "error",
            "human": "A question must use either option or options, not both",
            "xpath": "not(f:options and f:option)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN or DEF]"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.extension",
        "short": "Additional Content defined by implementations",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "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.",
        "comments": "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.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.linkId",
        "short": "To link questionnaire with questionnaire response",
        "definition": "An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.",
        "comments": "May be omitted if there is no expectation to link answers back to a questionnaire.  This *can* be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
        "requirements": "[[[QuestionnaireResponse]]] does not require omitted groups to be included and may have some groups that repeat, so linkage based on position alone is not sufficient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.concept",
        "short": "Concept that represents this question on a questionnaire",
        "definition": "Identifies a how this question is known in a particular terminology such as LOINC.",
        "requirements": "Allows linking of questions (and their answers) to formal terminologies.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Codes corresponding to individual questions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"

          }
        },
        {
          "path": "Questionnaire.group.question.name",
          "definition": {
            "short": "Code or name of the question",
            "formal": "Structured name for the question that identifies this question within the Questionnaire or Group.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": false,
            "binding": {
              "name": "QuestionName",
              "isExtensible": true,
              "conformance": "example",
              "referenceResource": {
                "reference": "http://hl7.org/fhir/vs/questionnaire-question-name"
              }
            },
            "mapping": [
              {
                "identity": "rim",
                "map": ".code"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.text",
        "short": "Text of the question as it is shown to the user",
        "definition": "The actual question as shown to the user to prompt them for an answer.",
        "comments": "Common extensions are defined for more specialized types of display text.",
        "requirements": "When including text for the questionnaire, each question may contain its actual question display text.",
        "alias": [
          "Question"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".code.display"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.type",
        "short": "boolean | decimal | integer | date | dateTime +",
        "definition": "The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.",
        "comments": "Additional constraints on the type of answer can be conveyed by extensions.",
        "requirements": "Defines the format in which the user is to be prompted for the answer.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "The expected format of an answer.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/answer-format"

          }
        },
        {
          "path": "Questionnaire.group.question.text",
          "definition": {
            "short": "Text of the question as it is shown to the user",
            "formal": "Text of the question as it is shown to the user.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".code.display"
              }

        "mapping": [
          {
            "identity": "rim",
            "map": "N/A - MIF rather than RIM level"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.required",
        "short": "Whether the question must be answered in data results",
        "definition": "If true, indicates that the question must be answered and have required groups within it also present.  If false, the question and any contained groups may be skipped when answering the questionnaire.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.repeats",
        "short": "Whether the question  can have multiple answers",
        "definition": "If true, the question may have more than one answer.",
        "comments": "Whether the question itself will be displayed for each answer is a rendering choice typically based on whether there are nested groups.",
        "requirements": "Used for \"check all that apply\" types of questions or \"list your top 3\", etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.options",
        "short": "Valueset containing permitted answers",
        "definition": "Reference to a value set containing a list of codes representing permitted answers for the question.",
        "comments": "LOINC defines many useful value sets for questionnaire response. See [LOINC Answer Lists](loinc.html#alist).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"

            ]
          }
        ],
        "condition": [
          "que-4"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer to capture value set"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.option",
        "short": "Permitted answer",
        "definition": "For a \"choice\" question, identifies one of the permitted answers for the question.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "condition": [
          "que-4"
        ],
        "binding": {
          "strength": "example",
          "description": "Allowed values to answer questions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
          }

        },
        {
          "path": "Questionnaire.group.question.answer[x]",
          "definition": {
            "short": "Single-valued answer to the question",
            "formal": "Single-valued answer to the question.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "boolean"
              },
              {
                "code": "date"
              },
              {
                "code": "string"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "instant"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".value"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer to capture value set"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.group",
        "short": "Nested questionnaire group",
        "definition": "Nested group, containing nested question for this question. The order of groups within the question is relevant.",
        "requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
        "min": 0,
        "max": "*",
        "nameReference": "group",
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Questionnaire",
        "short": "A structured set of questions",
        "definition": "A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
        "alias": [
          "Form",
          "CRF",
          "Survey"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "constraint": [
          {
            "key": "que-3",
            "severity": "error",
            "human": "If root group must be \"required\"",
            "xpath": "f:group/f:required/@value=true()"
          },
          {
            "key": "que-2",
            "severity": "error",
            "human": "The link ids for groups and questions must be unique within the questionnaire",
            "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Observation[moodCode=DEF]"
          },
          {
            "identity": "w5",
            "map": "infrastructure.information"
          }
        ]
      },
      {
        "path": "Questionnaire.identifier",
        "short": "External identifiers for this questionnaire",
        "definition": "This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
        "requirements": "Need to allow connection to a wider workflow.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id[use=BUS]"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]
      },
      {
        "path": "Questionnaire.version",
        "short": "Logical identifier for this version of Questionnaire",
        "definition": "The version number assigned by the publisher for business reasons.  It may remain the same when the resource is updated.",
        "requirements": "In some cases, separate resource instances might be created for each version (if an older version can be maintained once a new version exists).",
        "alias": [
          "N/A - MIF rather than RIM level"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id[use=VER]"
          },
          {
            "identity": "w5",
            "map": "id.version"
          }
        ]
      },
      {
        "path": "Questionnaire.status",
        "short": "draft | published | retired",
        "definition": "The lifecycle status of the questionnaire as a whole.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Lifecycle status of the questionnaire.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-status"

          }
        },
        {
          "path": "Questionnaire.group.question.choice",
          "definition": {
            "short": "Selected options",
            "formal": "Selections made by the user from the list of options.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "Not supported - MIF/templating layer to capture value set"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
          },
          {
            "identity": "w5",
            "map": "status"
          }
        ]
      },
      {
        "path": "Questionnaire.date",
        "short": "Date this version was authored",
        "definition": "The date that this questionnaire was last changed.",
        "alias": [
          "Date created",
          "Date published",
          "Date issued",
          "Date updated"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "Questionnaire.publisher",
        "short": "Organization/individual who designed the questionnaire",
        "definition": "Organization or person responsible for developing and maintaining the questionnaire.",
        "requirements": "Conveys responsibility for the questions and their organization and also helps evaluate the questionnaire's \"authority\".",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          },
          {
            "identity": "w5",
            "map": "who.witness"
          }
        ]
      },
      {
        "path": "Questionnaire.telecom",
        "short": "Contact information of the publisher",
        "definition": "Contact details to assist a user in finding and communicating with the publisher.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role.telecom"
          }
        ]
      },
      {
        "path": "Questionnaire.subjectType",
        "short": "Resource that can be subject of QuestionnaireResponse",
        "definition": "Identifies the types of subjects that can be the subject of the questionnaire.",
        "comments": "If none are specified, then the subject is unlimited.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "One of the resource types defined as part of FHIR.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/resource-types"

          }
        },
        {
          "path": "Questionnaire.group.question.options",
          "definition": {
            "short": "Valueset containing the possible options",
            "formal": "Reference to a valueset containing the possible options.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ResourceReference",
                "profile": "http://hl7.org/fhir/profiles/ValueSet"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": "Not supported - MIF/templating layer to capture value set"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode"
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Group"
          }
        ],
        "path": "Questionnaire.group",
        "name": "group",
        "short": "Grouped questions",
        "definition": "A collection of related questions (or further groupings of questions).",
        "comments": "The Questionnaire itself has one \"root\" group with the actual contents of the Questionnaire.  Information on this root group applies to the questionnaire as a whole.",
        "requirements": "Need to be able to logically group answers to grouped questions.",
        "alias": [
          "Section"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "que-3"
        ],
        "constraint": [
          {
            "key": "que-1",
            "severity": "error",
            "human": "Groups may either contain questions or groups but not both",
            "xpath": "not(exists(f:group) and exists(f:question))"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Questionnaire.group.linkId",
        "short": "To link questionnaire with questionnaire response",
        "definition": "An identifier that is unique within the Questionnaire allowing linkage to the equivalent group in a QuestionnaireResponse resource.",
        "comments": "May be omitted if there is no expectation to link answers back to a questionnaire.  This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
        "requirements": "[[[QuestionnaireResponse]]] does not require omitted groups to be included and may have some groups that repeat, so linkage based on position alone is not sufficient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Questionnaire.group.title",
        "short": "Name to be displayed for group",
        "definition": "The human-readable name for this section of the questionnaire.",
        "comments": "The title of the \"root\" group is the title for the questionnaire.",
        "requirements": "When including text for the questionnaire with the answers, sections may have a section header.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".title"
          }
        ]
      },
      {
        "path": "Questionnaire.group.concept",
        "short": "Concept that represents this section in a questionnaire",
        "definition": "Identifies a how this group of questions is known in a particular terminology such as LOINC.",
        "comments": "The code(s) for the \"root\" group apply to the questionnaire as a whole.",
        "requirements": "Allows linking of groups of questions (and complete Questionnaire resources) to formal terminologies.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "Codes for groupings of questionnaire questions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"

          }
        },
        {
          "path": "Questionnaire.group.question.data[x]",
          "definition": {
            "short": "Structured answer",
            "formal": "Structured answer in the form of a FHIR Resource or datatype.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "*"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".outboundRelationship[typeCode=VALUE].target"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Questionnaire.group.text",
        "short": "Additional text for the group",
        "definition": "Additional text for the group, used for display purposes.",
        "comments": "Common extensions are defined for more specialized types of display text.",
        "requirements": "When including text for the questionnaire, each section may contain additional explanations are background text.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "Questionnaire.group.required",
        "short": "Whether the group must be included in data results",
        "definition": "If true, indicates that the group must be present and have required questions within it answered.  If false, the group may be skipped when answering the questionnaire.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.repeats",
        "short": "Whether the group may repeat",
        "definition": "Whether the group may occur multiple times in the instance, containing multiple sets of answers.",
        "requirements": "Groups may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.group",
        "short": "Nested questionnaire group",
        "definition": "A sub-group within a group. The ordering of groups within this group is relevant.",
        "requirements": "Reports can consist of complex nested groups.",
        "min": 0,
        "max": "*",
        "nameReference": "group",
        "condition": [
          "que-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Question"
          }
        ],
        "path": "Questionnaire.group.question",
        "short": "Questions in this group",
        "definition": "Set of questions within this group. The order of questions within the group is relevant.",
        "requirements": "Must register answers to questions.",
        "alias": [
          "Responses",
          "Contents"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "que-1"
        ],
        "constraint": [
          {
            "key": "que-4",
            "severity": "error",
            "human": "A question must use either option or options, not both",
            "xpath": "not(f:options and f:option)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN or DEF]"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.linkId",
        "short": "To link questionnaire with questionnaire response",
        "definition": "An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.",
        "comments": "May be omitted if there is no expectation to link answers back to a questionnaire.  This *can* be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
        "requirements": "[[[QuestionnaireResponse]]] does not require omitted groups to be included and may have some groups that repeat, so linkage based on position alone is not sufficient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.concept",
        "short": "Concept that represents this question on a questionnaire",
        "definition": "Identifies a how this question is known in a particular terminology such as LOINC.",
        "requirements": "Allows linking of questions (and their answers) to formal terminologies.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Codes corresponding to individual questions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"

          }
        },
        {
          "path": "Questionnaire.group.question.remarks",
          "definition": {
            "short": "Remarks about the answer given",
            "formal": "The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
              }
            ]

        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.text",
        "short": "Text of the question as it is shown to the user",
        "definition": "The actual question as shown to the user to prompt them for an answer.",
        "comments": "Common extensions are defined for more specialized types of display text.",
        "requirements": "When including text for the questionnaire, each question may contain its actual question display text.",
        "alias": [
          "Question"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".code.display"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.type",
        "short": "boolean | decimal | integer | date | dateTime +",
        "definition": "The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.",
        "comments": "Additional constraints on the type of answer can be conveyed by extensions.",
        "requirements": "Defines the format in which the user is to be prompted for the answer.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "The expected format of an answer.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/answer-format"

          }
        },
        {
          "path": "Questionnaire.group.question.group",
          "definition": {
            "short": "Nested questionnaire group",
            "formal": "Nested group, containing nested question for this question. The order of groups within the question is relevant.",
            "min": 0,
            "max": "*",
            "nameReference": "Questionnaire.group",
            "isModifier": false,
            "mapping": [
              {
                "identity": "rim",
                "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
              }

        "mapping": [
          {
            "identity": "rim",
            "map": "N/A - MIF rather than RIM level"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.required",
        "short": "Whether the question must be answered in data results",
        "definition": "If true, indicates that the question must be answered and have required groups within it also present.  If false, the question and any contained groups may be skipped when answering the questionnaire.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.repeats",
        "short": "Whether the question  can have multiple answers",
        "definition": "If true, the question may have more than one answer.",
        "comments": "Whether the question itself will be displayed for each answer is a rendering choice typically based on whether there are nested groups.",
        "requirements": "Used for \"check all that apply\" types of questions or \"list your top 3\", etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.options",
        "short": "Valueset containing permitted answers",
        "definition": "Reference to a value set containing a list of codes representing permitted answers for the question.",
        "comments": "LOINC defines many useful value sets for questionnaire response. See [LOINC Answer Lists](loinc.html#alist).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"

            ]
          }
        }
      ],
      "searchParam": [
        {
          "name": "_id",
          "type": "token",
          "documentation": "The logical resource id associated with the resource (must be supported by all servers)"
        },
        {
          "name": "_language",
          "type": "token",
          "documentation": "The language of the resource"
        },
        {
          "name": "author",
          "type": "reference",
          "documentation": "The author of the questionnaire",
          "xpath": "f:Questionnaire/f:author"
        },
        {
          "name": "authored",
          "type": "date",
          "documentation": "When the questionnaire was authored",
          "xpath": "f:Questionnaire/f:authored"
        },
        {
          "name": "encounter",
          "type": "reference",
          "documentation": "Encounter during which questionnaire was authored",
          "xpath": "f:Questionnaire/f:encounter"
        },
        {
          "name": "identifier",
          "type": "token",
          "documentation": "An identifier for the questionnaire",
          "xpath": "f:Questionnaire/f:identifier"
        },
        {
          "name": "name",
          "type": "token",
          "documentation": "Name of the questionnaire",
          "xpath": "f:Questionnaire/f:name"
        },
        {
          "name": "status",
          "type": "token",
          "documentation": "The status of the questionnaire",
          "xpath": "f:Questionnaire/f:status"

        ],
        "condition": [
          "que-4"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer to capture value set"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.option",
        "short": "Permitted answer",
        "definition": "For a \"choice\" question, identifies one of the permitted answers for the question.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "condition": [
          "que-4"
        ],
        "binding": {
          "strength": "example",
          "description": "Allowed values to answer questions.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
          }

        },
        {
          "name": "subject",
          "type": "reference",
          "documentation": "The subject of the questionnaire",
          "xpath": "f:Questionnaire/f:subject"
        }
      ]
    }
  ]

        "mapping": [
          {
            "identity": "rim",
            "map": "Not supported - MIF/templating layer to capture value set"
          }
        ]
      },
      {
        "path": "Questionnaire.group.question.group",
        "short": "Nested questionnaire group",
        "definition": "Nested group, containing nested question for this question. The order of groups within the question is relevant.",
        "requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
        "min": 0,
        "max": "*",
        "nameReference": "group",
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
          }
        ]
      }
    ]
  }

}

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.