{
  "resourceType": "StructureDefinition",
  "id": "AllergyIntolerance",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/AllergyIntolerance/v1",
  "version": "1.0",
  "name": "AllergyIntolerance",
  "status": "active",
  "date": "2024-01-10T14:02:01.1873929+00:00",
  "description": "This element contains data regarding allergy intolerances.\r\nThe profile is based on the AllergyIntolerance Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.id",
        "path": "AllergyIntolerance.id",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta",
        "path": "AllergyIntolerance.meta"
      },
      {
        "id": "AllergyIntolerance.meta.id",
        "path": "AllergyIntolerance.meta.id",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.versionId",
        "path": "AllergyIntolerance.meta.versionId",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.lastUpdated",
        "path": "AllergyIntolerance.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.source",
        "path": "AllergyIntolerance.meta.source",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.profile",
        "path": "AllergyIntolerance.meta.profile",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.security",
        "path": "AllergyIntolerance.meta.security",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.tag",
        "path": "AllergyIntolerance.meta.tag",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.implicitRules",
        "path": "AllergyIntolerance.implicitRules",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.language",
        "path": "AllergyIntolerance.language",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.text",
        "path": "AllergyIntolerance.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.contained",
        "path": "AllergyIntolerance.contained",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier",
        "path": "AllergyIntolerance.identifier",
        "definition": "Identifier of the allergy or intolerance.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.identifier.use",
        "path": "AllergyIntolerance.identifier.use",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.type",
        "path": "AllergyIntolerance.identifier.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.system",
        "path": "AllergyIntolerance.identifier.system",
        "definition": "Establishes the namespace for the identifier of the allergy or intolerance.",
        "min": 1,
        "fixedUri": "http://amphisystems.com/amphi/journaldatasystemid"
      },
      {
        "id": "AllergyIntolerance.identifier.value",
        "path": "AllergyIntolerance.identifier.value",
        "definition": "A unique identifier of the allergy or intolerance.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.period",
        "path": "AllergyIntolerance.identifier.period",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.assigner",
        "path": "AllergyIntolerance.identifier.assigner",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding",
        "path": "AllergyIntolerance.clinicalStatus.coding",
        "definition": "Code defined by a terminology system.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.system",
        "path": "AllergyIntolerance.clinicalStatus.coding.system",
        "definition": "Identity of the terminology system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.version",
        "path": "AllergyIntolerance.clinicalStatus.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.code",
        "path": "AllergyIntolerance.clinicalStatus.coding.code",
        "definition": "Symbol in syntax defined by the system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.display",
        "path": "AllergyIntolerance.clinicalStatus.coding.display",
        "definition": "Representation defined by the system."
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.userSelected",
        "path": "AllergyIntolerance.clinicalStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.text",
        "path": "AllergyIntolerance.clinicalStatus.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding",
        "path": "AllergyIntolerance.verificationStatus.coding",
        "definition": "Code defined by a terminology system.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.system",
        "path": "AllergyIntolerance.verificationStatus.coding.system",
        "definition": "Identity of the terminology system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.version",
        "path": "AllergyIntolerance.verificationStatus.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.code",
        "path": "AllergyIntolerance.verificationStatus.coding.code",
        "definition": "Symbol in syntax defined by the system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.display",
        "path": "AllergyIntolerance.verificationStatus.coding.display",
        "definition": "Representation defined by the system."
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.userSelected",
        "path": "AllergyIntolerance.verificationStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.text",
        "path": "AllergyIntolerance.verificationStatus.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.type",
        "path": "AllergyIntolerance.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.category",
        "path": "AllergyIntolerance.category",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code",
        "path": "AllergyIntolerance.code",
        "definition": "Code that identifies the allergy or intolerance."
      },
      {
        "id": "AllergyIntolerance.code.coding",
        "path": "AllergyIntolerance.code.coding",
        "definition": "Code defined by a terminology system.",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.code.coding.system",
        "path": "AllergyIntolerance.code.coding.system",
        "definition": "Identity of the terminology system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding.version",
        "path": "AllergyIntolerance.code.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding.code",
        "path": "AllergyIntolerance.code.coding.code",
        "definition": "Symbol in syntax defined by the system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding.display",
        "path": "AllergyIntolerance.code.coding.display",
        "definition": "Representation defined by the system."
      },
      {
        "id": "AllergyIntolerance.code.coding.userSelected",
        "path": "AllergyIntolerance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.text",
        "path": "AllergyIntolerance.code.text",
        "definition": "Text representation of the allergy or intolerance."
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "definition": "The patient who is associated with the allergy or intolerance.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.patient.reference",
        "path": "AllergyIntolerance.patient.reference",
        "definition": "Literal reference to the patient resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.patient.type",
        "path": "AllergyIntolerance.patient.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier",
        "path": "AllergyIntolerance.patient.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier.use",
        "path": "AllergyIntolerance.patient.identifier.use",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier.type",
        "path": "AllergyIntolerance.patient.identifier.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier.system",
        "path": "AllergyIntolerance.patient.identifier.system",
        "definition": "Establishes the namespace for the identifier.",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier.value",
        "path": "AllergyIntolerance.patient.identifier.value",
        "definition": "The value that is unique.",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier.period",
        "path": "AllergyIntolerance.patient.identifier.period",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier.assigner",
        "path": "AllergyIntolerance.patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.display",
        "path": "AllergyIntolerance.patient.display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.encounter",
        "path": "AllergyIntolerance.encounter",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onset[x]",
        "path": "AllergyIntolerance.onset[x]",
        "definition": "When allergy or intolerance was identified.",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.recordedDate",
        "path": "AllergyIntolerance.recordedDate",
        "definition": "The recordedDate represents when this particular allergy or intolerance information record was created in the system, which is often a system-generated date. This will indicate the author time/created time of the allergy intolerance.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.recorder",
        "path": "AllergyIntolerance.recorder",
        "definition": "Clinician who recorded the record and takes responsibility for its content.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Practitioner/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.recorder.reference",
        "path": "AllergyIntolerance.recorder.reference",
        "definition": "Literal reference to the practitioner resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.recorder.type",
        "path": "AllergyIntolerance.recorder.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder.identifier",
        "path": "AllergyIntolerance.recorder.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder.display",
        "path": "AllergyIntolerance.recorder.display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter",
        "path": "AllergyIntolerance.asserter",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note",
        "path": "AllergyIntolerance.note",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction",
        "path": "AllergyIntolerance.reaction",
        "definition": "The reaction of the allergy or intolerance."
      },
      {
        "id": "AllergyIntolerance.reaction.substance",
        "path": "AllergyIntolerance.reaction.substance",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation",
        "path": "AllergyIntolerance.reaction.manifestation",
        "definition": "Header of the alert information.",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "definition": "Code defined by a terminology system.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding.system",
        "path": "AllergyIntolerance.reaction.manifestation.coding.system",
        "definition": "Identity of the terminology system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding.version",
        "path": "AllergyIntolerance.reaction.manifestation.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding.code",
        "path": "AllergyIntolerance.reaction.manifestation.coding.code",
        "definition": "Symbol in syntax defined by the system.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding.display",
        "path": "AllergyIntolerance.reaction.manifestation.coding.display",
        "definition": "Representation defined by the system."
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding.userSelected",
        "path": "AllergyIntolerance.reaction.manifestation.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.text",
        "path": "AllergyIntolerance.reaction.manifestation.text",
        "definition": "Text representation of the alert information.",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.description",
        "path": "AllergyIntolerance.reaction.description",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.onset",
        "path": "AllergyIntolerance.reaction.onset",
        "definition": "Record of the date and/or time of the onset of the Reaction. This will represent the Ascertained Date.",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.severity",
        "path": "AllergyIntolerance.reaction.severity",
        "definition": "This element contains the degree of severity of the allergy or intolerance."
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute",
        "path": "AllergyIntolerance.reaction.exposureRoute",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.note",
        "path": "AllergyIntolerance.reaction.note",
        "max": "0"
      }
    ]
  }
}