{
  "resourceType": "StructureDefinition",
  "id": "IPSAllergiesAndIntolerances",
  "url": "http://openehr.org/StructureDefinition/IPSAllergiesAndIntolerances",
  "version": "1.1.0-alpha.3",
  "name": "IPSAllergiesAndIntolerances",
  "title": "IPS - Allergies and Intolerances.v1",
  "status": "active",
  "description": "`[openEHR-EHR-COMPOSITION.adverse_reaction_list.v1]`\n                             A persistent and managed list of adverse reactions experienced by the subject that may influence clinical decision-making and care provision.)",
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "http://openehr.org/StructureDefinition/IPSAllergiesAndIntolerances",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "IPSAllergiesAndIntolerances",
        "path": "IPSAllergiesAndIntolerances",
        "short": "IPS - Allergies and Intolerances.v1",
        "definition": "`[openEHR-EHR-COMPOSITION.adverse_reaction_list.v1]`\n                             A persistent and managed list of adverse reactions experienced by the subject that may influence clinical decision-making and care provision.)"
      },
      {
        "id": "IPSAllergiesAndIntolerances.category",
        "path": "IPSAllergiesAndIntolerances.category",
        "short": "category",
        "definition": "`[RM]`\n                             Temporal category of this Composition, persistent / episodic or event.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http:openehr.org/ValueSet/Category"
        }
      },
      {
        "id": "IPSAllergiesAndIntolerances.composer",
        "path": "IPSAllergiesAndIntolerances.composer",
        "short": "composer",
        "definition": "`[RM]`\n                             The person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system). This is the identifier which should appear on the screen. It may or may not be the person who entered the data. When it is the patient, the special self instance of `PARTY_SELF` will be used.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.context",
        "path": "IPSAllergiesAndIntolerances.context",
        "short": "context",
        "definition": "`[RM]`\n                             `COMPOSITION.context` - Documents the context information of a healthcare event involving the subject of care and the health system. The context information recorded here are independent of the attributes recorded in the version audit, which document the system interaction context, i.e. the context of a user interacting with the health record system. Healthcare events include patient contacts, and any other business activity, such as pathology investigations which take place on behalf of the patient.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.context.startTime",
        "path": "IPSAllergiesAndIntolerances.context.startTime",
        "short": "start_time",
        "definition": "`[RM]`\n                             COMPOSITION.context.start_time - Start time of the clinical session or other kind of event during which a provider performs a service of any kind for the patient.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.context.setting",
        "path": "IPSAllergiesAndIntolerances.context.setting",
        "short": "setting",
        "definition": "`[RM]`\n                             The setting in which the clinical session took place. Coded using the openEHR Terminology, setting group.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http:openehr.org/ValueSet/Setting"
        }
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances",
        "short": "Allergies & Intolerances",
        "definition": "`[openEHR-EHR-SECTION.adhoc.v1]`\n                             A generic section header which should be renamed in a template to suit a specific clinical context.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance",
        "short": "Allergy Intolerance",
        "definition": "`[openEHR-EHR-EVALUATION.adverse_reaction_risk.v2]`\n                             Clinical assessment of the propensity for an individual to experience a harmful or undesirable physiological response if exposed, or re-exposed, to a substance.)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.substance",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.substance",
        "short": "Substance",
        "definition": "`[at0002]`\n                             Identification of a substance, or substance class, that is considered to put the individual at risk of an adverse reaction event.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.verificationStatus",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.verificationStatus",
        "short": "Verification status",
        "definition": "`[at0063]`\n                             Assertion about the certainty of the propensity, or potential future risk, of the identified 'Substance' to cause a reaction.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http:openehr.org/ValueSet/VerificationStatus"
        }
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.criticality",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier",
            "valueIdentifier": {
              "system": "http:/openehr.org/openEHR-EHR-EVALUATION.adverse_reaction_risk.v2",
              "value": "at0101"
            }
          }
        ],
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.criticality",
        "short": "Criticality",
        "definition": "`[at0101]`\n                             An indication of the potential for critical system organ damage or life threatening consequence.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http:openehr.org/ValueSet/Criticality"
        }
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.type",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.type",
        "short": "Type",
        "definition": "`[at0058]`\n                             Identification of the underlying physiological mechanism for the adverse reaction.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent",
        "short": "Adverse reaction event",
        "definition": "`[openEHR-EHR-CLUSTER.adverse_reaction_event.v1]`\n                             Information about a specific adverse reaction event caused by exposure to a specific substance.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent.manifestation",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent.manifestation",
        "short": "Manifestation",
        "definition": "`[at0006]`\n                             Clinical symptoms and/or signs that are observed or associated with the adverse reaction.)",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent.onset",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent.onset",
        "short": "Onset",
        "definition": "`[at0008]`\n                             The date and/or time of the onset of the reaction.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent.severity",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.adverseReactionEvent.severity",
        "short": "Severity",
        "definition": "`[at0010]`\n                             Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http:openehr.org/ValueSet/Severity"
        }
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.comment",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.comment",
        "short": "Comment",
        "definition": "`[at0006]`\n                             Additional narrative about the propensity for the adverse reaction, not captured in other fields.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.lastUpdated",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AllergyIntolerance.lastUpdated",
        "short": "Last updated",
        "definition": "`[at0062]`\n                             Date when the propensity or the reaction event was updated.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.ExclusionGlobal",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.ExclusionGlobal",
        "short": "Exclusion - global",
        "definition": "`[openEHR-EHR-EVALUATION.exclusion_global.v1]`\n                             An overall statement of exclusion about all Problems/diagnoses, Family history, Medications, Procedures, Adverse reactions or other clinical items that are either not currently present, or have not been present in the past.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.ExclusionGlobal.globalExclusionOfAdverseReactions",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.ExclusionGlobal.globalExclusionOfAdverseReactions",
        "short": "Global exclusion of adverse reactions",
        "definition": "`[at0002]`\n                             Overall statement of exclusion about all adverse reactions at the time of recording.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AbsenceOfInformation",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AbsenceOfInformation",
        "short": "Absence of information",
        "definition": "`[openEHR-EHR-EVALUATION.absence.v2]`\n                             Statement that specified health information is not available for inclusion in the health record or extract at the time of recording.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AbsenceOfInformation.absenceStatement",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AbsenceOfInformation.absenceStatement",
        "short": "Absence statement",
        "definition": "`[at0002]`\n                             Positive statement that no information is available.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "IPSAllergiesAndIntolerances.allergiesIntolerances.AbsenceOfInformation.lastUpdated",
        "path": "IPSAllergiesAndIntolerances.allergiesIntolerances.AbsenceOfInformation.lastUpdated",
        "short": "Last updated",
        "definition": "`[at0004]`\n                             The date at which the absence was last updated.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      }
    ]
  }
}