<AllergyIntolerance xmlns="http://hl7.org/fhir">
  <id value="ma-ma-schema-1-AllergyIntolerance-4001" />
  <meta>
    <lastUpdated value="2023-12-18T23:07:47Z" />
    <source value="urn:telus:emr:ma:ma-schema-1" />
    <profile value="https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwAllergyIntolerance" />
    <security>
      <system value="http://terminology.hl7.org/CodeSystem/v3-Confidentiality" />
      <code value="N" />
      <display value="normal" />
    </security>
  </meta>
  <identifier>
    <use value="official" />
    <system value="urn:telus:emr:ma:ma-schema-1:AllergyIntolerance" />
    <value value="4001" />
  </identifier>
  <clinicalStatus>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" />
      <code value="active" />
      <display value="Active" />
    </coding>
    <text value="Active" />
  </clinicalStatus>
  <verificationStatus>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" />
      <code value="confirmed" />
      <display value="Confirmed" />
    </coding>
    <text value="Confirmed" />
  </verificationStatus>
  <type value="allergy" />
  <category value="medication" />
  <criticality value="high" />
  <code>
    <coding>
      <system value="http://snomed.info/sct" />
      <code value="764146007" />
      <display value="penicillin" />
    </coding>
    <text value="Penicillin" />
  </code>
  <patient>
    <reference value="Patient/ma-ma-schema-1-Patient-12345" />
    <type value="Patient" />
    <display value="John Michael Smith" />
  </patient>
  <encounter>
    <reference value="Encounter/ma-ma-schema-1-Encounter-2001" />
    <type value="Encounter" />
  </encounter>
  <onsetDateTime value="2015-03-20" />
  <recordedDate value="2015-03-20T14:30:00Z" />
  <recorder>
    <reference value="Practitioner/ma-ma-schema-1-Practitioner-789" />
    <type value="Practitioner" />
    <display value="Dr. Sarah Johnson" />
  </recorder>
  <lastOccurrence value="2015-03-20" />
  <note>
    <text value="Patient reports rash and itching after taking penicillin in 2015. Avoid all penicillin-based antibiotics." />
  </note>
  <reaction>
    <manifestation>
      <coding>
        <system value="http://snomed.info/sct" />
        <code value="271807003" />
        <display value="Rash" />
      </coding>
      <text value="Generalized maculopapular rash with intense itching" />
    </manifestation>
    <onset value="2015-03-20T18:00:00Z" />
    <severity value="moderate" />
  </reaction>
</AllergyIntolerance>