{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task-ForLocking",
  "name": "Task-ForLocking",
  "status": "active",
  "experimental": false,
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.meta",
        "path": "Task.meta",
        "min": 1,
        "type": [
          {
            "code": "Meta",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Meta-ForCommonConformance"
          }
        ]
      },
      {
        "id": "Task.meta.tag",
        "path": "Task.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.meta.tag:history-shallIgnore",
        "path": "Task.meta.tag",
        "sliceName": "history-shallIgnore",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.meta.tag:history-shallIgnore.system",
        "path": "Task.meta.tag.system",
        "min": 1,
        "fixedUri": "http://apiframework.dedalus.eu/tag/history-shallIgnore"
      },
      {
        "id": "Task.meta.tag:history-shallIgnore.code",
        "path": "Task.meta.tag.code",
        "min": 1,
        "fixedCode": "true"
      },
      {
        "id": "Task.partOf",
        "path": "Task.partOf",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "fixedCode": "in-progress",
        "constraint": [
          {
            "key": "status-constraint",
            "severity": "error",
            "human": "Only in-progress and completed are allowed",
            "expression": "task.status = \"in-progress\" or task.status=\"completed\""
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "fixedCode": "order",
        "mustSupport": true
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://apiframework.dedalus.eu/fhir/ValueSet/TaskCodes"
        }
      },
      {
        "id": "Task.code.coding",
        "path": "Task.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.code.coding.system",
        "path": "Task.code.coding.system",
        "min": 1,
        "fixedUri": "http://apiframework.dedalus.eu/fhir/CodeSystem/TaskCodes"
      },
      {
        "id": "Task.code.coding.code",
        "path": "Task.code.coding.code",
        "min": 1,
        "fixedCode": "keep-alive"
      }
    ]
  }
}