{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-10T15:43:16.348+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/QuestionnaireResponseContext",
  "version": "1",
  "name": "QuestionnaireResponseContext",
  "title": "Questionnaire Response Context",
  "status": "draft",
  "date": "2019-01-10",
  "publisher": "Philips",
  "description": "The Task that prompted the patient to fill in the questionnaire. From this, the associated CarePlan can also be determined.",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "QuestionnaireResponse"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "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",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://healthyme.philips.com/fhir/StructureDefinition/QuestionnaireResponseContext"
      },
      {
        "id": "Extension.value[x]:valueReference",
        "path": "Extension.valueReference",
        "sliceName": "valueReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://healthyme.philips.com/fhir/StructureDefinition/Task"
          }
        ]
      }
    ]
  }
}