{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-08-17T14:59:24.565+00:00"
  },
  "url": "http://example.org/fhir/MyQuestionnaireCDA",
  "name": "MyQuestionnaireCDA",
  "status": "draft",
  "date": "2018-08-17T14:59:24.381+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Questionnaire",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Questionnaire.description",
        "path": "Questionnaire.description",
        "min": 1
      },
      {
        "id": "Questionnaire.copyright",
        "path": "Questionnaire.copyright",
        "min": 1
      },
      {
        "id": "Questionnaire.code.system",
        "path": "Questionnaire.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.code.code",
        "path": "Questionnaire.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item",
        "path": "Questionnaire.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Questionnaire.item:group",
        "path": "Questionnaire.item",
        "sliceName": "group",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.code.system",
        "path": "Questionnaire.item.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.code.code",
        "path": "Questionnaire.item.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.type",
        "path": "Questionnaire.item.type",
        "fixedCode": "group"
      },
      {
        "id": "Questionnaire.item:group.item",
        "path": "Questionnaire.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric",
        "path": "Questionnaire.item.item",
        "sliceName": "intNumeric"
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.extension",
        "path": "Questionnaire.item.item.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.extension:extension-minValue",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-minValue",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "minValue"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.extension:extension-maxValue",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-maxValue",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "maxValue"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.code.system",
        "path": "Questionnaire.item.item.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.code.code",
        "path": "Questionnaire.item.item.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.type",
        "path": "Questionnaire.item.item.type",
        "fixedCode": "integer"
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.item",
        "path": "Questionnaire.item.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.item:media",
        "path": "Questionnaire.item.item.item",
        "sliceName": "media",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.item:media.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "attachment"
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.item:feedback",
        "path": "Questionnaire.item.item.item",
        "sliceName": "feedback",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:intNumeric.item:feedback.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "display"
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric",
        "path": "Questionnaire.item.item",
        "sliceName": "decNumeric"
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.extension",
        "path": "Questionnaire.item.item.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.extension:extension-minValue",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-minValue",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "minValue"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.extension:extension-maxValue",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-maxValue",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "maxValue"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.code.system",
        "path": "Questionnaire.item.item.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.code.code",
        "path": "Questionnaire.item.item.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.type",
        "path": "Questionnaire.item.item.type",
        "fixedCode": "decimal"
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.item",
        "path": "Questionnaire.item.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.item:media",
        "path": "Questionnaire.item.item.item",
        "sliceName": "media",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.item:media.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "attachment"
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.item:feedback",
        "path": "Questionnaire.item.item.item",
        "sliceName": "feedback",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:decNumeric.item:feedback.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "display"
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric",
        "path": "Questionnaire.item.item",
        "sliceName": "dateTimeNumeric"
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.extension",
        "path": "Questionnaire.item.item.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.extension:extension-minValue",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-minValue",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "minValue"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.extension:extension-maxValue",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-maxValue",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "maxValue"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.code.system",
        "path": "Questionnaire.item.item.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.code.code",
        "path": "Questionnaire.item.item.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.type",
        "path": "Questionnaire.item.item.type",
        "fixedCode": "dateTime"
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.item",
        "path": "Questionnaire.item.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.item:media",
        "path": "Questionnaire.item.item.item",
        "sliceName": "media",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.item:media.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "attachment"
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.item:feedback",
        "path": "Questionnaire.item.item.item",
        "sliceName": "feedback",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:dateTimeNumeric.item:feedback.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "display"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice",
        "path": "Questionnaire.item.item",
        "sliceName": "multipleChoice"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.extension",
        "path": "Questionnaire.item.item.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.extension:extension-minOccurs",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-minOccurs",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "minOccurs"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.extension:extension-maxOccurs",
        "path": "Questionnaire.item.item.extension",
        "sliceName": "extension-maxOccurs",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "maxOccurs"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.code.system",
        "path": "Questionnaire.item.item.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.code.code",
        "path": "Questionnaire.item.item.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.type",
        "path": "Questionnaire.item.item.type",
        "fixedCode": "choice"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.option",
        "path": "Questionnaire.item.item.option",
        "min": 2
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.option.value[x]",
        "path": "Questionnaire.item.item.option.value[x]",
        "type": [
          {
            "code": "Coding"
          }
        ]
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item",
        "path": "Questionnaire.item.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:text",
        "path": "Questionnaire.item.item.item",
        "sliceName": "text",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:text.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "string"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:text.item",
        "path": "Questionnaire.item.item.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        },
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:text.item:media",
        "path": "Questionnaire.item.item.item.item",
        "sliceName": "media",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:text.item:media.type",
        "path": "Questionnaire.item.item.item.item.type",
        "fixedCode": "attachment"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:media",
        "path": "Questionnaire.item.item.item",
        "sliceName": "media",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:media.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "attachment"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:feedback",
        "path": "Questionnaire.item.item.item",
        "sliceName": "feedback"
      },
      {
        "id": "Questionnaire.item:group.item:multipleChoice.item:feedback.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "display"
      },
      {
        "id": "Questionnaire.item:group.item:text",
        "path": "Questionnaire.item.item",
        "sliceName": "text"
      },
      {
        "id": "Questionnaire.item:group.item:text.code.system",
        "path": "Questionnaire.item.item.code.system",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:text.code.code",
        "path": "Questionnaire.item.item.code.code",
        "min": 1
      },
      {
        "id": "Questionnaire.item:group.item:text.type",
        "path": "Questionnaire.item.item.type",
        "fixedCode": "string"
      },
      {
        "id": "Questionnaire.item:group.item:text.item",
        "path": "Questionnaire.item.item.item",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        },
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:text.item:media",
        "path": "Questionnaire.item.item.item",
        "sliceName": "media",
        "max": "1"
      },
      {
        "id": "Questionnaire.item:group.item:text.item:media.type",
        "path": "Questionnaire.item.item.item.type",
        "fixedCode": "attachment"
      }
    ]
  }
}