{
  "resourceType": "StructureDefinition",
  "id": "0b46c375-739c-49df-8580-42503f09f215",
  "meta": {
    "lastUpdated": "2019-01-10T15:46:58.706+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/QuestionnaireResponse",
  "version": "1",
  "name": "QuestionnaireResponse",
  "title": "Questionnaire Response",
  "status": "draft",
  "date": "2019-01-10",
  "publisher": "Philips",
  "description": "A structured set of questions and their answers, as filled in by a specific patient at a specific time",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "QuestionnaireResponse",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "QuestionnaireResponse",
        "path": "QuestionnaireResponse",
        "definition": "A structured set of questions and their answers, as filled in by a specific patient at a specific time"
      },
      {
        "id": "QuestionnaireResponse.extension",
        "path": "QuestionnaireResponse.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "QuestionnaireResponse.extension:context",
        "path": "QuestionnaireResponse.extension",
        "sliceName": "context",
        "short": "Task that asked patient to fill in questionnaire",
        "definition": "The Task that prompted the patient to fill in the questionnaire. From this, the associated CarePlan can also be determined.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/QuestionnaireResponseContext"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.questionnaire",
        "path": "QuestionnaireResponse.questionnaire",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://healthyme.philips.com/fhir/StructureDefinition/Questionnaire"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.status",
        "path": "QuestionnaireResponse.status",
        "short": "in-progress | completed | stopped",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "QuestionnaireResponseStatus"
            }
          ],
          "strength": "required",
          "valueSetUri": "http://healthyme.philips.com/fhir/ValueSet/questionnaire-answers-status"
        }
      },
      {
        "id": "QuestionnaireResponse.subject",
        "path": "QuestionnaireResponse.subject",
        "definition": "The patient whom the questions are about",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.authored",
        "path": "QuestionnaireResponse.authored",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.item.definition",
        "path": "QuestionnaireResponse.item.definition",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item.text",
        "path": "QuestionnaireResponse.item.text",
        "short": "Question text",
        "definition": "The primary text for the item, formulating the question to be answered (copied from the QuestionnaireItem)",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.item.subject",
        "path": "QuestionnaireResponse.item.subject",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "type": [
          {
            "code": "boolean"
          },
          {
            "code": "decimal"
          },
          {
            "code": "integer"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "time"
          },
          {
            "code": "string"
          },
          {
            "code": "Coding"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.item.answer.item",
        "path": "QuestionnaireResponse.item.answer.item",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item.item",
        "path": "QuestionnaireResponse.item.item",
        "max": "0"
      }
    ]
  }
}