{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task-ForAllergyIntolerance",
  "name": "Task-ForAllergyIntolerance",
  "title": "API Framework Task-ForAllergyIntolerance",
  "status": "active",
  "experimental": false,
  "description": "Task profile dedicated MED008 Allergy Intolerance",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.meta.tag",
        "path": "Task.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.identifier",
        "path": "Task.identifier",
        "mustSupport": true
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "fixedCode": "plan"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "requirements": "Medication order tasks must be related to a target Patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Task.output",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.output",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Task.output.type",
        "path": "Task.output.type",
        "binding": {
          "strength": "extensible",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/all-types"
        }
      },
      {
        "id": "Task.output.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:listForAllergyIntolerance",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.output",
        "sliceName": "listForAllergyIntolerance",
        "min": 1
      },
      {
        "id": "Task.output:listForAllergyIntolerance.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:listForAllergyIntolerance.type.coding.code",
        "path": "Task.output.type.coding.code",
        "min": 1,
        "fixedCode": "List"
      },
      {
        "id": "Task.output:listForAllergyIntolerance.value[x]:valueReference",
        "path": "Task.output.valueReference",
        "sliceName": "valueReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/List-ForAllergyIntolerance"
          }
        ]
      }
    ]
  }
}