{
  "resourceType": "StructureDefinition",
  "id": "c398a0c9-5c01-42ec-8e44-e9735a2a28d7",
  "meta": {
    "lastUpdated": "2021-03-29T09:34:49.664+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/TaskReferralCore/v1",
  "name": "TaskReferralCore",
  "status": "draft",
  "date": "2021-01-21T15:10:24.2717779+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Task.identifier",
        "path": "Task.identifier",
        "min": 1
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "short": "draft | requested | accepted | +",
        "definition": "Supported statuses are Requested, Accepted, Rejected, Cancelled, In progress, Completed, Entered in error\r\nWe may also support Draft\r\nStatuses that are not supported are Ready, On hold & Failed"
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
            ]
          }
        ]
      },
      {
        "id": "Task.focus.type",
        "path": "Task.focus.type",
        "min": 1,
        "fixedUri": "ServiceRequest"
      },
      {
        "id": "Task.for.type",
        "path": "Task.for.type",
        "fixedUri": "Patient"
      },
      {
        "id": "Task.for.identifier",
        "path": "Task.for.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.for.identifier:personnummer",
        "path": "Task.for.identifier",
        "sliceName": "personnummer",
        "definition": "Swedish social security number published by Skatteverket (Personnummer)"
      },
      {
        "id": "Task.for.identifier:personnummer.system",
        "path": "Task.for.identifier.system",
        "definition": "Swedish social security number published by Skatteverket (Personnummer)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.1"
      },
      {
        "id": "Task.for.identifier:personnummer.value",
        "path": "Task.for.identifier.value",
        "min": 1
      },
      {
        "id": "Task.for.identifier:samordningsnummer",
        "path": "Task.for.identifier",
        "sliceName": "samordningsnummer",
        "definition": "Swedish cordination number published by Skatteverket. (Samordningsnummer) is a temporary identity number for people who are not registered in the country but who have contact with the country's authorities. The number is similar to social security number."
      },
      {
        "id": "Task.for.identifier:samordningsnummer.system",
        "path": "Task.for.identifier.system",
        "definition": "Swedish cordination number published by Skatteverket. (Samordningsnummer) is a temporary identity number for people who are not registered in the country but who have contact with the country's authorities. The number is similar to social security number.",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.3"
      },
      {
        "id": "Task.for.identifier:samordningsnummer.value",
        "path": "Task.for.identifier.value",
        "min": 1
      }
    ]
  }
}