{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/Wayfinder-UKCore-Task",
  "name": "WayfinderUKCoreTask",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.id",
        "path": "Task.id",
        "min": 1
      },
      {
        "id": "Task.identifier.system",
        "path": "Task.identifier.system",
        "min": 1
      },
      {
        "id": "Task.identifier.value",
        "path": "Task.identifier.value",
        "min": 1
      },
      {
        "id": "Task.basedOn.type",
        "path": "Task.basedOn.type",
        "min": 1
      },
      {
        "id": "Task.basedOn.identifier",
        "path": "Task.basedOn.identifier",
        "min": 1
      },
      {
        "id": "Task.basedOn.identifier.system",
        "path": "Task.basedOn.identifier.system",
        "min": 1
      },
      {
        "id": "Task.basedOn.identifier.value",
        "path": "Task.basedOn.identifier.value",
        "min": 1
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "short": "requested | cancelled | in-progress | completed"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "short": "plan"
      },
      {
        "id": "Task.description",
        "path": "Task.description",
        "min": 1
      },
      {
        "id": "Task.focus.reference",
        "path": "Task.focus.reference",
        "min": 1
      },
      {
        "id": "Task.focus.type",
        "path": "Task.focus.type",
        "short": "Appointment",
        "min": 1
      },
      {
        "id": "Task.for.type",
        "path": "Task.for.type",
        "short": "Patient",
        "min": 1
      },
      {
        "id": "Task.for.identifier",
        "path": "Task.for.identifier",
        "min": 1
      },
      {
        "id": "Task.for.identifier.system",
        "path": "Task.for.identifier.system",
        "min": 1
      },
      {
        "id": "Task.for.identifier.value",
        "path": "Task.for.identifier.value",
        "min": 1
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "min": 1
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "min": 1
      },
      {
        "id": "Task.owner.type",
        "path": "Task.owner.type",
        "short": "Organization",
        "min": 1
      },
      {
        "id": "Task.owner.identifier",
        "path": "Task.owner.identifier",
        "min": 1
      },
      {
        "id": "Task.owner.identifier.system",
        "path": "Task.owner.identifier.system",
        "min": 1
      },
      {
        "id": "Task.owner.identifier.value",
        "path": "Task.owner.identifier.value",
        "min": 1
      },
      {
        "id": "Task.reasonCode",
        "path": "Task.reasonCode",
        "min": 1
      },
      {
        "id": "Task.reasonCode.coding",
        "path": "Task.reasonCode.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.reasonCode.coding.system",
        "path": "Task.reasonCode.coding.system",
        "short": "https://fhir.nhs.uk/StructureDefinition/Extension-Questionnaire-Type",
        "min": 1
      },
      {
        "id": "Task.reasonCode.coding.code",
        "path": "Task.reasonCode.coding.code",
        "min": 1
      },
      {
        "id": "Task.reasonCode.coding.display",
        "path": "Task.reasonCode.coding.display",
        "min": 1
      },
      {
        "id": "Task.reasonCode.text",
        "path": "Task.reasonCode.text",
        "min": 1
      },
      {
        "id": "Task.reasonReference",
        "path": "Task.reasonReference",
        "min": 1
      },
      {
        "id": "Task.reasonReference.reference",
        "path": "Task.reasonReference.reference",
        "min": 1
      },
      {
        "id": "Task.reasonReference.type",
        "path": "Task.reasonReference.type",
        "min": 1
      }
    ]
  }
}