{
  "resourceType": "StructureDefinition",
  "id": "fmc-allergyintolerance-profile",
  "url": "http://fkcfhir.org/fhir/StructureDefinition/fmc-allergyintolerance-profile",
  "name": "FreseniusAllergyIntolerance",
  "title": "Fresenius Allergy Intolerance Profile",
  "status": "active",
  "description": "Fresenius Allergy Intolerance Profile",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "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": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.extension",
        "path": "AllergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "AllergyIntolerance.extension:allergyCategoryCd",
        "extension": [
          {
            "url": "http://fkcfhir.org/fhir/StructureDefinition/fmc-allergy-category-extn"
          }
        ],
        "path": "AllergyIntolerance.extension",
        "sliceName": "allergyCategoryCd",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-allergy-category-extn"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.category",
        "path": "AllergyIntolerance.category",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code",
        "path": "AllergyIntolerance.code",
        "binding": {
          "strength": "required",
          "valueSet": "http://fkcfhir.org/fhir/ValueSet/fmc-allergy-code-vs"
        }
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-patient-profile"
            ]
          }
        ]
      },
      {
        "id": "AllergyIntolerance.recordedDate",
        "path": "AllergyIntolerance.recordedDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.recorder",
        "path": "AllergyIntolerance.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-practitioner-profile"
            ]
          }
        ]
      }
    ]
  }
}