{
  "resourceType": "StructureDefinition",
  "id": "Task",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Task/v1",
  "version": "1.0",
  "name": "Task",
  "status": "active",
  "date": "2024-01-13T15:34:45.9076113+00:00",
  "description": "This resource is used for meta data about the task.\r\nThe profile is based on the Task Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.id",
        "path": "Task.id",
        "max": "0"
      },
      {
        "id": "Task.meta",
        "path": "Task.meta"
      },
      {
        "id": "Task.meta.id",
        "path": "Task.meta.id",
        "max": "0"
      },
      {
        "id": "Task.meta.versionId",
        "path": "Task.meta.versionId",
        "min": 1
      },
      {
        "id": "Task.meta.lastUpdated",
        "path": "Task.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Task.meta.source",
        "path": "Task.meta.source",
        "max": "0"
      },
      {
        "id": "Task.meta.profile",
        "path": "Task.meta.profile",
        "max": "0"
      },
      {
        "id": "Task.meta.security",
        "path": "Task.meta.security",
        "max": "0"
      },
      {
        "id": "Task.meta.tag",
        "path": "Task.meta.tag",
        "max": "0"
      },
      {
        "id": "Task.implicitRules",
        "path": "Task.implicitRules",
        "max": "0"
      },
      {
        "id": "Task.language",
        "path": "Task.language",
        "max": "0"
      },
      {
        "id": "Task.text",
        "path": "Task.text",
        "max": "0"
      },
      {
        "id": "Task.contained",
        "path": "Task.contained",
        "max": "0"
      },
      {
        "id": "Task.extension:priorityToIncident",
        "path": "Task.extension",
        "sliceName": "priorityToIncident",
        "definition": "Priority of transport to incident.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PriorityToIncident/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.extension:emsUnitStatus",
        "path": "Task.extension",
        "sliceName": "emsUnitStatus",
        "definition": "The status of the EMS Unit.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/EMSUnitStatus/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.extension:pickupAddress",
        "path": "Task.extension",
        "sliceName": "pickupAddress",
        "definition": "Pickup address of the patient(s).",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PickupAddress/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.extension:delieveryAddress",
        "path": "Task.extension",
        "sliceName": "delieveryAddress",
        "definition": "Delivery address of the patient(s).",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/DeliveryAddress/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.extension:transferETA",
        "path": "Task.extension",
        "sliceName": "transferETA",
        "definition": "Estimated time of arrival (ETA) to place of transfer.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/TransferETA/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.identifier",
        "path": "Task.identifier",
        "definition": "An identifier for this task.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.identifier.use",
        "path": "Task.identifier.use",
        "max": "0"
      },
      {
        "id": "Task.identifier.type",
        "path": "Task.identifier.type",
        "max": "0"
      },
      {
        "id": "Task.identifier.system",
        "path": "Task.identifier.system",
        "definition": "Namespace for the identifier value.",
        "min": 1
      },
      {
        "id": "Task.identifier.value",
        "path": "Task.identifier.value",
        "definition": "Unique value - the actual task id.",
        "min": 1
      },
      {
        "id": "Task.identifier.period",
        "path": "Task.identifier.period",
        "max": "0"
      },
      {
        "id": "Task.identifier.assigner",
        "path": "Task.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Task.instantiatesCanonical",
        "path": "Task.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Task.instantiatesUri",
        "path": "Task.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "definition": "Reference to incident.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Incident/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Task.basedOn.reference",
        "path": "Task.basedOn.reference",
        "definition": "Literal reference to the basic resource (incident). Relative URL is being used.",
        "min": 1
      },
      {
        "id": "Task.basedOn.type",
        "path": "Task.basedOn.type",
        "max": "0"
      },
      {
        "id": "Task.basedOn.identifier",
        "path": "Task.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "Task.basedOn.display",
        "path": "Task.basedOn.display",
        "max": "0"
      },
      {
        "id": "Task.groupIdentifier",
        "path": "Task.groupIdentifier",
        "max": "0"
      },
      {
        "id": "Task.partOf",
        "path": "Task.partOf",
        "max": "0"
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "definition": "The status of the task.\r\n\r\nWhen task is created status is 'in-progress' until it is closed. Then status will change to\r\n'completed'."
      },
      {
        "id": "Task.statusReason",
        "path": "Task.statusReason",
        "max": "0"
      },
      {
        "id": "Task.businessStatus",
        "path": "Task.businessStatus",
        "max": "0"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "definition": "Indicates the \"level\" of actionability associated with the Task. Ie is this a proposed task, a planned task, an actionable task, etc.",
        "fixedCode": "unknown"
      },
      {
        "id": "Task.priority",
        "path": "Task.priority",
        "max": "0"
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "max": "0"
      },
      {
        "id": "Task.description",
        "path": "Task.description",
        "max": "0"
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "max": "0"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "max": "0"
      },
      {
        "id": "Task.encounter",
        "path": "Task.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/EncounterReference/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Task.encounter.id",
        "path": "Task.encounter.id",
        "max": "0"
      },
      {
        "id": "Task.encounter.reference",
        "path": "Task.encounter.reference",
        "definition": "Literal reference to the Encounter resource.\r\nRelative URL is being used.",
        "min": 1
      },
      {
        "id": "Task.encounter.type",
        "path": "Task.encounter.type",
        "max": "0"
      },
      {
        "id": "Task.encounter.identifier",
        "path": "Task.encounter.identifier",
        "max": "0"
      },
      {
        "id": "Task.encounter.display",
        "path": "Task.encounter.display",
        "max": "0"
      },
      {
        "id": "Task.executionPeriod",
        "path": "Task.executionPeriod",
        "max": "0"
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "min": 1
      },
      {
        "id": "Task.lastModified",
        "path": "Task.lastModified",
        "max": "0"
      },
      {
        "id": "Task.requester",
        "path": "Task.requester",
        "max": "0"
      },
      {
        "id": "Task.performerType",
        "path": "Task.performerType",
        "max": "0"
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "max": "0"
      },
      {
        "id": "Task.location",
        "path": "Task.location",
        "definition": "Where task occurs. Reference to EMS Unit.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/EMSUnit/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Task.location.reference",
        "path": "Task.location.reference",
        "definition": "Literal reference to the EMS Unit resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "Task.location.type",
        "path": "Task.location.type",
        "max": "0"
      },
      {
        "id": "Task.location.identifier",
        "path": "Task.location.identifier",
        "max": "0"
      },
      {
        "id": "Task.location.display",
        "path": "Task.location.display",
        "max": "0"
      },
      {
        "id": "Task.reasonCode",
        "path": "Task.reasonCode",
        "max": "0"
      },
      {
        "id": "Task.reasonReference",
        "path": "Task.reasonReference",
        "max": "0"
      },
      {
        "id": "Task.insurance",
        "path": "Task.insurance",
        "max": "0"
      },
      {
        "id": "Task.note",
        "path": "Task.note",
        "definition": "Additional information for the Receiving Hospital.",
        "max": "1"
      },
      {
        "id": "Task.note.id",
        "path": "Task.note.id",
        "max": "0"
      },
      {
        "id": "Task.note.author[x]",
        "path": "Task.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Practitioner/v1"
            ]
          }
        ]
      },
      {
        "id": "Task.note.author[x].id",
        "path": "Task.note.author[x].id",
        "max": "0"
      },
      {
        "id": "Task.note.author[x].reference",
        "path": "Task.note.author[x].reference",
        "definition": "Literal reference to the Practitioner resource.\r\nRelative URL is being used.",
        "min": 1
      },
      {
        "id": "Task.note.author[x].type",
        "path": "Task.note.author[x].type",
        "max": "0"
      },
      {
        "id": "Task.note.author[x].identifier",
        "path": "Task.note.author[x].identifier",
        "max": "0"
      },
      {
        "id": "Task.note.author[x].display",
        "path": "Task.note.author[x].display",
        "max": "0"
      },
      {
        "id": "Task.relevantHistory",
        "path": "Task.relevantHistory",
        "max": "0"
      },
      {
        "id": "Task.restriction",
        "path": "Task.restriction",
        "max": "0"
      },
      {
        "id": "Task.input",
        "path": "Task.input",
        "max": "0"
      },
      {
        "id": "Task.output",
        "path": "Task.output",
        "max": "0"
      }
    ]
  }
}