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