FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/AllergiesIntolerancesSection

Packagehl7.fhir.uv.ips
TypeStructureDefinition
IdAllergiesIntolerancesSection
FHIR VersionR4
Sourcehttp://hl7.org/fhir/uv/ips/https://build.fhir.org/ig/costateixeira/fhir-ips/StructureDefinition-AllergiesIntolerancesSection.html
URLhttp://hl7.org/fhir/uv/ips/StructureDefinition/AllergiesIntolerancesSection
Version2.0.0
Statusactive
Date2025-05-05T17:00:38+00:00
NameAllergiesIntolerancesSection
TitleAllergies and Intolerances
Realmuv
Authorityhl7
DescriptionAllergies and Intolerances Section
Typehttp://hl7.org/fhir/uv/ips/StructureDefinition/AllergiesIntolerancesSection
Kindlogical

Resources that use this resource

StructureDefinition
ISO27269ISO 27269 IPS

Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition AllergiesIntolerancesSection

NameFlagsCard.TypeDescription & Constraintsdoco
.. AllergiesIntolerancesSection 0..*BaseAllergies and Intolerances
Instances of this logical model can be the target of a Reference
... contentStatus 0..1CodeableConceptAllergies/Intolerances content status
... allergyIntolerance 0..*BackboneElementAllergy/Intolerance
.... description 0..1stringAllergy/Intolerance description
.... clinicalStatus 0..1CodeableConceptClinical status
.... onsetDate 0..1dateTimeOnset date
.... endDate 0..1dateTimeEnd date
.... criticality 0..1CodeableConceptCriticality
.... certainty 0..1CodeableConceptCertainty
.... typeOfPropensity 0..1CodeableConceptType of propensity
.... diagnosis 0..1stringDiagnosis
.... reaction 0..1BackboneElementReaction
..... manifestation 0..*CodeableConceptManifestation of the reaction
..... severity 0..1CodeableConceptSeverity
.... agent 0..*BackboneElementAgent
..... code 0..1CodeableConceptAgent code
..... category 0..1CodeableConceptCategory

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "AllergiesIntolerancesSection",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/ips/ImplementationGuide/hl7.fhir.uv.ips"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/ips/ImplementationGuide/hl7.fhir.uv.ips"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/AllergiesIntolerancesSection",
  "version": "2.0.0",
  "name": "AllergiesIntolerancesSection",
  "title": "Allergies and Intolerances",
  "status": "active",
  "date": "2025-05-05T17:00:38+00:00",
  "publisher": "HL7 International / Patient Care",
  "contact": [
    {
      "name": "HL7 International / Patient Care",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/patientcare"
        }
      ]
    }
  ],
  "description": "Allergies and Intolerances Section",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "http://hl7.org/fhir/uv/ips/StructureDefinition/AllergiesIntolerancesSection",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "AllergiesIntolerancesSection",
        "path": "AllergiesIntolerancesSection",
        "short": "Allergies and Intolerances",
        "definition": "Allergies and Intolerances Section",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "AllergiesIntolerancesSection.contentStatus",
        "path": "AllergiesIntolerancesSection.contentStatus",
        "short": "Allergies/Intolerances content status",
        "definition": "Allergies/Intolerances content status",
        "comment": "Conditional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.contentStatus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance",
        "path": "AllergiesIntolerancesSection.allergyIntolerance",
        "short": "Allergy/Intolerance",
        "definition": "Allergy/Intolerance",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.id",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.extension",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.modifierExtension",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.description",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.description",
        "short": "Allergy/Intolerance description",
        "definition": "Allergy/Intolerance description",
        "comment": "Required (Exceptions allowed)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.description",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.clinicalStatus",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.clinicalStatus",
        "short": "Clinical status",
        "definition": "Clinical status",
        "comment": "Required (Exceptions allowed)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.clinicalStatus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.onsetDate",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.onsetDate",
        "short": "Onset date",
        "definition": "Onset date",
        "comment": "Required if known",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.onsetDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.endDate",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.endDate",
        "short": "End date",
        "definition": "End date",
        "comment": "Conditional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.endDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.criticality",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.criticality",
        "short": "Criticality",
        "definition": "Criticality",
        "comment": "Optional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.criticality",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.certainty",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.certainty",
        "short": "Certainty",
        "definition": "Certainty",
        "comment": "Conditional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.certainty",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.typeOfPropensity",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.typeOfPropensity",
        "short": "Type of propensity",
        "definition": "Type of propensity",
        "comment": "Required if known",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.typeOfPropensity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.diagnosis",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.diagnosis",
        "short": "Diagnosis",
        "definition": "Diagnosis",
        "comment": "Optional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.diagnosis",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction",
        "short": "Reaction",
        "definition": "Reaction",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.id",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.extension",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.modifierExtension",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.manifestation",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.manifestation",
        "short": "Manifestation of the reaction",
        "definition": "Manifestation of the reaction",
        "comment": "Required if known",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.manifestation",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.severity",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.severity",
        "short": "Severity",
        "definition": "Severity",
        "comment": "Required if known",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.severity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent",
        "short": "Agent",
        "definition": "Agent",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.agent",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.id",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.extension",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.modifierExtension",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.code",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.code",
        "short": "Agent code",
        "definition": "Agent code",
        "comment": "Required (Exceptions allowed)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.category",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.category",
        "short": "Category",
        "definition": "Category",
        "comment": "Optional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.category",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "AllergiesIntolerancesSection",
        "path": "AllergiesIntolerancesSection",
        "short": "Allergies and Intolerances",
        "definition": "Allergies and Intolerances Section"
      },
      {
        "id": "AllergiesIntolerancesSection.contentStatus",
        "path": "AllergiesIntolerancesSection.contentStatus",
        "short": "Allergies/Intolerances content status",
        "definition": "Allergies/Intolerances content status",
        "comment": "Conditional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance",
        "path": "AllergiesIntolerancesSection.allergyIntolerance",
        "short": "Allergy/Intolerance",
        "definition": "Allergy/Intolerance",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.description",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.description",
        "short": "Allergy/Intolerance description",
        "definition": "Allergy/Intolerance description",
        "comment": "Required (Exceptions allowed)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.clinicalStatus",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.clinicalStatus",
        "short": "Clinical status",
        "definition": "Clinical status",
        "comment": "Required (Exceptions allowed)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.onsetDate",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.onsetDate",
        "short": "Onset date",
        "definition": "Onset date",
        "comment": "Required if known",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.endDate",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.endDate",
        "short": "End date",
        "definition": "End date",
        "comment": "Conditional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.criticality",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.criticality",
        "short": "Criticality",
        "definition": "Criticality",
        "comment": "Optional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.certainty",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.certainty",
        "short": "Certainty",
        "definition": "Certainty",
        "comment": "Conditional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.typeOfPropensity",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.typeOfPropensity",
        "short": "Type of propensity",
        "definition": "Type of propensity",
        "comment": "Required if known",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.diagnosis",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.diagnosis",
        "short": "Diagnosis",
        "definition": "Diagnosis",
        "comment": "Optional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction",
        "short": "Reaction",
        "definition": "Reaction",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.manifestation",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.manifestation",
        "short": "Manifestation of the reaction",
        "definition": "Manifestation of the reaction",
        "comment": "Required if known",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.reaction.severity",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.reaction.severity",
        "short": "Severity",
        "definition": "Severity",
        "comment": "Required if known",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent",
        "short": "Agent",
        "definition": "Agent",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.code",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.code",
        "short": "Agent code",
        "definition": "Agent code",
        "comment": "Required (Exceptions allowed)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "AllergiesIntolerancesSection.allergyIntolerance.agent.category",
        "path": "AllergiesIntolerancesSection.allergyIntolerance.agent.category",
        "short": "Category",
        "definition": "Category",
        "comment": "Optional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}