{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/List-OfAllergyIntolerances",
  "name": "List-OfAllergyIntolerances",
  "status": "active",
  "experimental": false,
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List.meta",
        "path": "List.meta",
        "type": [
          {
            "code": "Meta",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Meta-ForCommonConformance"
          }
        ]
      },
      {
        "id": "List.meta.tag",
        "path": "List.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "List.status",
        "path": "List.status",
        "fixedCode": "current"
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "fixedCode": "snapshot"
      },
      {
        "id": "List.title",
        "path": "List.title",
        "mustSupport": true
      },
      {
        "id": "List.code",
        "path": "List.code",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://apiframework.dedalus.eu/fhir/ValueSet/ListCodes"
          }
        }
      },
      {
        "id": "List.code.coding",
        "path": "List.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "List.code.coding.code",
        "path": "List.code.coding.code",
        "min": 1,
        "fixedCode": "allergy-intolerances"
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.encounter",
        "path": "List.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.date",
        "path": "List.date",
        "min": 1
      },
      {
        "id": "List.source",
        "path": "List.source",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/AllergyIntolerance"
          }
        ]
      },
      {
        "id": "List.emptyReason",
        "path": "List.emptyReason",
        "mustSupport": true
      }
    ]
  }
}