<entry>

<observation classCode="OBS" moodCode="EVN">
  <!-- Conforms to C-CDA R2.1 Substance or Device Allergy - Intolerance Observation (V2) -->
  <templateId root="2.16.840.1.113883.10.20.24.3.90" extension="2014-06-09"/>
  <!-- Allergy Intolerance -->
  <templateId root="2.16.840.1.113883.10.20.24.3.147" extension="2019-12-01"/>
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
  <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
  <statusCode code="completed" />
  {{#prevalencePeriod}}
  {{{prevalence_period}}}
  {{/prevalencePeriod}}
  <value xsi:type="CD" code="419199007" displayName="Allergy to substance" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT"/>
  {{#authorDatetime}}
    <!-- QDM Attribute: Author dateTime -->
    {{> qrda_templates/template_partials/_author}}
  {{/authorDatetime}}
  <participant typeCode="CSM">
    <participantRole classCode="MANU">
      <playingEntity classCode="MMAT">
        <!-- QDM Attribute: Code -->
        {{> _codes}}
        <name>{{description}}</name>
      </playingEntity>
    </participantRole>
  </participant>
  {{#recorder}}
    <!-- QDM Attribute: Recorder -->
  <participant typeCode="PRF">
    {{> qrda_templates/template_partials/_entity}}
  </participant>
  {{/recorder}}
  {{#type}}
    <!-- QDM Attribute: Type -->
    {{> qrda_templates/template_partials/_reaction_observation}}
  {{/type}}
  {{#severity}}
    <!-- QDM Attribute: Severity -->
    {{> qrda_templates/template_partials/_severity}}
  {{/severity}}
</observation>

</entry>