<?xml version=“1.0” encoding=“UTF-8”?> <AllergyIntolerance xmlns=“hl7.org/fhir”>

<id value="medication"/>

<meta>
  <security>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
    <code value="HTEST"/>
    <display value="test health data"/>
  </security>
</meta>
<clinicalStatus>
  <coding>
    <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"/>
    <code value="active"/>
    <display value="Active"/>
  </coding>
</clinicalStatus>

<verificationStatus>
  <coding>
    <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"/>
    <code value="unconfirmed"/>
    <display value="Unconfirmed"/>
  </coding>
</verificationStatus>

<category value="medication"/>

<criticality value="high"/> 

<!--   subtance, coded from RxNorm   -->
<code>
  <coding>
    <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
    <code value="7980"/>
    <display value="Penicillin G"/>
  </coding>
</code>

<!--   the patient that actually has the risk of adverse reaction   -->
<patient>
  <reference value="Patient/example"/>
</patient>

<!--   the date that this entry was recorded   -->  
<recordedDate value="2010-03-01"/>

<!--   who made the record / last updated it   -->
<recorder>
  <reference value="Practitioner/13"/>
</recorder>

<reaction> 
  <manifestation>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="247472004"/>
      <display value="Hives"/>
    </coding>
  </manifestation>
</reaction>

</AllergyIntolerance>