{
  "resourceType": "StructureDefinition",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Task",
  "version": "v0.10.0",
  "name": "EReferralTask",
  "title": "Task",
  "status": "draft",
  "description": "A task resource describes an activity that can be performed and tracks the state of completion of that activity. It is a representation that an activity should be or has been initiated, and eventually, represents the successful or unsuccessful completion of that activity.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Task.meta",
        "path": "Task.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Task.meta.profile",
        "path": "Task.meta.profile",
        "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Task|1.0.0 `_**\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Task.identifier",
        "path": "Task.identifier",
        "mustSupport": true
      },
      {
        "id": "Task.identifier.system",
        "path": "Task.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Task.identifier.value",
        "path": "Task.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/ereferral-ontario/ereferralservicerequest"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.basedOn.reference",
        "path": "Task.basedOn.reference",
        "mustSupport": true
      },
      {
        "id": "Task.basedOn.identifier",
        "path": "Task.basedOn.identifier",
        "mustSupport": true
      },
      {
        "id": "Task.basedOn.identifier.system",
        "path": "Task.basedOn.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Task.basedOn.identifier.value",
        "path": "Task.basedOn.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "mustSupport": true
      },
      {
        "id": "Task.businessStatus",
        "path": "Task.businessStatus",
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "valueSet": "https://simplifier.net/ereferral-ontario/task-business-status"
        }
      },
      {
        "id": "Task.businessStatus.coding",
        "path": "Task.businessStatus.coding",
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/task-business-status"
        }
      },
      {
        "id": "Task.businessStatus.coding.system",
        "path": "Task.businessStatus.coding.system",
        "fixedUri": "https://ehealthontario.ca/fhir/CodeSystem/task-business-status",
        "mustSupport": true
      },
      {
        "id": "Task.businessStatus.coding.code",
        "path": "Task.businessStatus.coding.code",
        "mustSupport": true
      },
      {
        "id": "Task.businessStatus.coding.display",
        "path": "Task.businessStatus.coding.display",
        "mustSupport": true
      },
      {
        "id": "Task.businessStatus.text",
        "path": "Task.businessStatus.text",
        "mustSupport": true
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "mustSupport": true
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "comment": "The title (eg \"My Tasks\", \"Outstanding Tasks for Patient X\") should go into the code",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://simplifier.net/ereferral-ontario/task-code"
        }
      },
      {
        "id": "Task.code.coding",
        "path": "Task.code.coding",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/task-code"
        }
      },
      {
        "id": "Task.code.coding.system",
        "path": "Task.code.coding.system",
        "fixedUri": "https://ehealthontario.ca/fhir/CodeSystem/task-code",
        "mustSupport": true
      },
      {
        "id": "Task.code.coding.code",
        "path": "Task.code.coding.code",
        "mustSupport": true
      },
      {
        "id": "Task.code.coding.display",
        "path": "Task.code.coding.display",
        "mustSupport": true
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "mustSupport": true
      },
      {
        "id": "Task.lastModified",
        "path": "Task.lastModified",
        "mustSupport": true
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.owner.reference",
        "path": "Task.owner.reference",
        "mustSupport": true
      },
      {
        "id": "Task.owner.identifier",
        "path": "Task.owner.identifier",
        "mustSupport": true
      },
      {
        "id": "Task.owner.identifier.system",
        "path": "Task.owner.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Task.owner.identifier.value",
        "path": "Task.owner.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Task.input",
        "path": "Task.input",
        "mustSupport": false
      },
      {
        "id": "Task.output",
        "path": "Task.output",
        "mustSupport": false
      }
    ]
  }
}