{
  "resourceType": "StructureDefinition",
  "id": "sfm-Task",
  "meta": {
    "versionId": "4",
    "lastUpdated": "2022-04-12T11:43:28.376184+00:00"
  },
  "url": "http://ehelse.no/fhir/StructureDefinition/sfm-Task",
  "version": "1.0",
  "name": "SfmTask",
  "title": "sfm-Task",
  "status": "active",
  "date": "2021-05-01",
  "description": "sfm-Task is derived from Task.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task",
        "path": "Task",
        "short": "Actions required in SFM",
        "definition": "The SFM-Oppgave is used to identify actions that must be taken in SFM."
      },
      {
        "id": "Task.instantiatesCanonical",
        "path": "Task.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Task.instantiatesUri",
        "path": "Task.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "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 current status of the task. All tasks created by SFM will initially have status \"reqested\". For some tasks EHR will be able to report that the task is fulfilled. This should then be set to completed.",
        "mustSupport": true
      },
      {
        "id": "Task.statusReason",
        "path": "Task.statusReason",
        "max": "0"
      },
      {
        "id": "Task.businessStatus",
        "path": "Task.businessStatus",
        "max": "0"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "definition": "SFM will only use \"order\".",
        "mustSupport": true
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "definition": "Examples of task types are:\r\n- GodkjennKladd\r\n- EndringMDPakking",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehelse.no/fhir/CodeSystem/sfm-task-types"
        }
      },
      {
        "id": "Task.code.coding.system",
        "path": "Task.code.coding.system",
        "fixedUri": "http://ehelse.no/fhir/CodeSystem/sfm-task-types"
      },
      {
        "id": "Task.code.coding.code",
        "path": "Task.code.coding.code",
        "min": 1
      },
      {
        "id": "Task.code.coding.display",
        "path": "Task.code.coding.display",
        "min": 1
      },
      {
        "id": "Task.description",
        "path": "Task.description",
        "definition": "Includes the text that should be shown to the user within the work list.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "max": "0"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehelse.no/fhir/StructureDefinition/sfm-Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.encounter",
        "path": "Task.encounter",
        "max": "0"
      },
      {
        "id": "Task.executionPeriod",
        "path": "Task.executionPeriod",
        "max": "0"
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "mustSupport": true
      },
      {
        "id": "Task.lastModified",
        "path": "Task.lastModified",
        "mustSupport": true
      },
      {
        "id": "Task.requester",
        "path": "Task.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Task.performerType",
        "path": "Task.performerType",
        "mustSupport": true
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "definition": "Individual or organization currently responsible for task execution.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehelse.no/fhir/StructureDefinition/sfm-Practitioner",
              "http://ehelse.no/fhir/StructureDefinition/sfm-Organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.location",
        "path": "Task.location",
        "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",
        "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"
      }
    ]
  }
}