{
  "resourceType": "StructureDefinition",
  "url": "http://www.agfa.com/fhir/StructureDefinition/ei-task",
  "name": "Enterprise Imaging Task",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "agfa-ei-model",
      "name": "Enterprise Imaging Date Model"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "REQUESTD_PROCEDURE"
          }
        ]
      },
      {
        "id": "Task.groupIdentifier",
        "path": "Task.groupIdentifier",
        "max": "0"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "defaultValueCode": "filler-order"
      },
      {
        "id": "Task.priority",
        "path": "Task.priority",
        "definition": "mapping between EI \r\nnormal - Normal\r\nurgent - High \r\nasap - Urgent\r\nstat - STAT",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "JBPM_TASKINSTANCE#PRIORITY_"
          }
        ]
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "WF_ACTIVITY"
          }
        ]
      },
      {
        "id": "Task.code.coding.system",
        "path": "Task.code.coding.system",
        "max": "0"
      },
      {
        "id": "Task.code.coding.version",
        "path": "Task.code.coding.version",
        "max": "0"
      },
      {
        "id": "Task.code.coding.code",
        "path": "Task.code.coding.code",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "WF_ACTIVITY#NAME_"
          }
        ]
      },
      {
        "id": "Task.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Task.code.coding.display",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "WF_ACTIVITY#DISPLAY_"
          }
        ]
      },
      {
        "id": "Task.code.coding.userSelected",
        "path": "Task.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Task.code.text",
        "max": "0"
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "max": "0"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "max": "0"
      },
      {
        "id": "Task.context",
        "path": "Task.context",
        "max": "0"
      },
      {
        "id": "Task.executionPeriod.start",
        "path": "Task.executionPeriod.start",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "JBPM_TASKINSTNCE#START_"
          }
        ]
      },
      {
        "id": "Task.executionPeriod.end",
        "path": "Task.executionPeriod.end",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "JBPM_TASKINSTNCE#END_"
          }
        ]
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "JBPM_TASKINSTANCE#CREATE_"
          }
        ]
      },
      {
        "id": "Task.lastModified",
        "path": "Task.lastModified",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "JBPM_TASKINSTANCE#LAST_MODIFIED"
          }
        ]
      },
      {
        "id": "Task.performerType",
        "path": "Task.performerType",
        "max": "0"
      },
      {
        "id": "Task.restriction",
        "path": "Task.restriction",
        "max": "0"
      }
    ]
  }
}