### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Questionnaire.json
### ----------------------------------------------------
### -- Chunk 16 of 18
 false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EnableWhenBehavior"
        }],
        "strength" : "required",
        "description" : "Controls how multiple enableWhen values are interpreted -  whether all or any must be true.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.required",
      "path" : "Questionnaire.item.required",
      "short" : "Whether the item must be included in data results",
      "definition" : "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse.  If false, the item may be skipped when answering the questionnaire.",
      "comment" : "Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true.  If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.required",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "Items are generally assumed not to be required unless explicitly specified. Systems SHOULD always populate this value",
      "condition" : ["que-6"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.repeats",
      "path" : "Questionnaire.item.repeats",
      "short" : "Whether the item may repeat",
      "definition" : "An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.",
      "comment" : "If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse.  When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. \"repeat the question\") or to simply allow entry/selection of multiple answers for the question (repeat the answers).  Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.\n\nThe resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.\n\n The value may come from the ElementDefinition referred to by .definition.",
      "requirements" : "Items 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",
      "base" : {
        "path" : "Questionnaire.item.repeats",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value",
      "condition" : ["que-6"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.readOnly",
      "path" : "Questionnaire.item.readOnly",
      "short" : "Don't allow human editing",
      "definition" : "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.",
      "comment" : "The value of readOnly elements can be established by asserting  extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.",
      "requirements" : "Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it.  May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.readOnly",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "condition" : ["que-9"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.maxLength",
      "path" : "Questionnaire.item.maxLength",
      "short" : "No more than this many characters",
      "definition" : "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.",
      "comment" : "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.maxLength",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "integer"
      }],
      "condition" : ["que-10"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "N/A"
      },
      {
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.answerValueSet",
      "path" : "Questionnaire.item.answerValueSet",
      "short" : "Valueset containing permitted answers",
      "definition" : "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.",
      "comment" : "LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](loinc.html#alist). The value may come from the ElementDefinition referred to by .definition.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.answerValueSet",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ValueSet"]
      }],
      "condition" : ["que-4",
      "que-5"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.answerOption",
      "path" : "Questionnaire.item.answerOption",
      "short" : "Permitted answer",
      "definition" : "One of the permitted answers for a \"choice\" or \"open-choice\" question.",
      "comment" : "This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Questionnaire.item.answerOption",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "condition" : ["que-4",
      "que-5"],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.answerOption.id",
      "path" : "Questionnaire.item.answerOption.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Questionnaire.item.answerOption.extension",
      "path" : "Questionnaire.item.answerOption.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. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "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" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Questionnaire.item.answerOption.modifierExtension",
      "path" : "Questionnaire.item.answerOption.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Questionnaire.item.answerOption.value[x]",
      "path" : "Questionnaire.item.answerOption.value[x]",
      "short" : "Answer value",
      "definition" : "A potential answer that's allowed as the answer to this question.",
      "comment" : "The data type of the value must agree with the item.type.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.answerOption.value[x]",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "integer"
      },
      {
        "code" : "date"
      },
      {
        "code" : "time"
      },
      {
        "code" : "string"
      },
      {
        "code" : "Coding"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "QuestionnaireQuestionOption"
        }],
        "strength" : "example",
        "description" : "Allowed values to answer questions.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-answers"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.answerOption.initialSelected",
      "path" : "Questionnaire.item.answerOption.initialSelected",
      "short" : "Whether option is selected by default",
      "definition" : "Indicates whether the answer value is selected when the list of possible answers is initially shown.",
      "comment" : "Use this instead of initial[v] if answerValueSet is present.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.answerOption.initialSelected",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "Only selected items explicitly marked to be selected",
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.initial",
      "path" : "Questionnaire.item.initial",
      "short" : "Initial value(s) when item is first rendered",
      "definition" : "One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.",
      "comment" : "The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created.  Note that initial values can influence results.  The data type of initial[x] must agree with the item.type, and only repeating items can have more then one initial value.",
      "requirements" : "In some workflows, having defaults saves time.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Questionnaire.item.initial",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "condition" : ["que-8",
      "que-13"],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.initial.id",
      "path" : "Questionnaire.item.initial.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Questionnaire.item.initial.extension",
      "path" : "Questionnaire.item.initial.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. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "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" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Questionnaire.item.initial.modifierExtension",
      "path" : "Questionnaire.item.initial.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Questionnaire.item.initial.value[x]",
      "path" : "Questionnaire.item.initial.value[x]",
      "short" : "Actual value for initializing the question",
      "definition" : "The actual value to for an initial answer.",
      "comment" : "The type of the initial value must be consistent with the type of the item.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Questionnaire.item.initial.value[x]",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      },
      {
        "code" : "decimal"
      },
      {
        "code" : "integer"
      },
      {
        "code" : "date"
      },
      {
        "code" : "dateTime"
      },
      {
        "code" : "time"
      },
      {
        "code" : "string"
      },
      {
        "code" : "uri"
      },
      {
        "code" : "Attachment"
      },
      {
        "code" : "Coding"
      },
      {
        "code" : "Quantity"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "QuestionnaireQuestionOption2"
        }],
        "strength" : "example",
        "description" : "Allowed values to answer questions.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-answers"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A - MIF rather than RIM level"
      }]
    },
    {
      "id" : "Questionnaire.item.item",
      "path" : "Questionnaire.item.item",
      "short" : "Nested questionnaire items",
      "definition" : "Text, questions and other groups to be nested beneath a question or group.",
      "comment" : "There is no specified limit to the depth of nesting.  However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.",
      "requirements" : "Reports can consist of complex nested groups.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Questionnaire.item.item",
        "min" : 0,
        "max" : "*"
      },
      "contentReference" : "#Questionnaire.item",
      "condition" : ["que-1"],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "Questionnaire",
      "path" : "Questionnaire",
      "short" : "A structured set of questions",
      "definition" : "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.",
      "alias" : ["Form",
      "CRF",
      "Survey"],
      "min" : 0,
      "max" : "*",
      "constraint" : [{
        "key" : "que-2",
        "severity" : "error",
        "human" : "The link ids for groups and questions must be unique within the questionnaire",
        "expression" : "descendants().linkId.isDistinct()",
        "xpath" : "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"
      },
      {
        "key" : "que-0",
        "severity" : "warning",
        "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
        "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
        "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition"
      },
      {
        "identity" : "rim",
        "map" : "Observation[moodCode=DEF]"
      }]
    },
    {
      "id" : "Questionnaire.url",
      "path" : "Questionnaire.url",
      "short" : "Canonical identifier for this questionnaire, represented as a URI (globally unique)",
      "definition" : "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.",
      "comment" : "The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.",
      "requirements" : "…  This is the id that will be used to link a QuestionnaireResponse to the Questionnaire the response is for.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "uri"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.url"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".identifier[scope=BUSN;reliability=ISS]"
      }]
    },
    {
      "id" : "Questionnaire.identifier",
      "path" : "Questionnaire.identifier",
      "short" : "Additional identifier for the questionnaire",
      "definition" : "A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.",
      "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.",
      "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".identifier"
      },
      {
        "identity" : "objimpl",
        "map" : "no-gen-base"
      }]
    },
    {
      "id" : "Questionnaire.version",
      "path" : "Questionnaire.version",
      "short" : "Business version of the questionnaire",
      "definition" : "The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.",
      "comment" : "There may be different questionnaire instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the questionnaire with the format [url]|[version].",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.version"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.version"
      },
      {
        "identity" : "rim",
        "map" : "N/A (to add?)"
      }]
    },
    {
      "id" : "Questionnaire.name",
      "path" : "Questionnaire.name",
      "short" : "Name for this questionnaire (computer friendly)",
      "definition" : "A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
      "comment" : "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
      "requirements" : "Support human navigation and code generation.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "condition" : ["inv-0"],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Questionnaire.title",
      "path" : "Questionnaire.title",
      "short" : "Name for this questionnaire (human friendly)",
      "definition" : "A short, descriptive, user-friendly title for the questionnaire.",
      "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.title"
      },
      {
        "identity" : "rim",
        "map" : ".title"
      }]
    },
    {
      "id" : "Questionnaire.derivedFrom",
      "path" : "Questionnaire.derivedFrom",
      "short" : "Instantiates protocol or definition",
      "definition" : "The URL of a Questionnaire that this Questionnaire is based on.",
      "requirements" : "Allows a Questionnaire to be created based on another Questionnaire.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Questionnaire"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.derivedFrom"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DRIV].target[classCode=OBS, moodCode=DEFN]"
      }]
    },
    {
      "id" : "Questionnaire.status",
      "path" : "Questionnaire.status",
      "short" : "draft | active | retired | unknown",
      "definition" : "The status of this questionnaire. Enables tracking the life-cycle of the content.",
      "comment" : "Allows filtering of questionnaires that are appropriate for use versus not.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "PublicationStatus"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "required",
        "description" : "The lifecycle status of an artifact.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "rim",
        "map" : ".status"
      }]
    },
    {
      "id" : "Questionnaire.experimental",
      "path" : "Questionnaire.experimental",
      "short" : "For testing purposes, not real usage",
      "definition" : "A Boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
      "comment" : "Allows filtering of questionnaires that are appropriate for use versus not.",
      "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level questionnaire.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.experimental"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Questionnaire.subjectType",
      "path" : "Questionnaire.subjectType",
      "short" : "Resource that can be subject of QuestionnaireResponse",
      "definition" : "The types of subjects that can be the subject of responses created for the questionnaire.",
      "comment" : "If none are specified, then the subject is unlimited.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "code