<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:XLink="https://trimedtech.com/" rel="canonical"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <GetPatientAllergyResponse
        xmlns="http://tempuri.org/">
      <GetPatientAllergyResult>
        <ClinicalDocument
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:cda="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 http://xreg2.nist.gov:8080/hitspValidation/schema/cdar2c32/infrastructure/cda/C32_CDA.xsd"
            xmlns="urn:hl7-org:v3"
            xmlns:sdtc="urn:hl7-org:sdtc">
          <realmCode code="US" />
          <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040" />
          <templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01" />
          <templateId root="2.16.840.1.113883.10.20.22.1.1" />
          <templateId root="2.16.840.1.113883.10.20.22.1.2" />
          <templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01" />
          <id root="1.1.1.1.1.1.1.1.1" extension="CCD_eMedsys" />
          <code code="34133-9" displayName="CCD Summary" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" />
          <title>CLINIC Health Summary</title>
          <effectiveTime value="20190905150937" />
          <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" />
          <languageCode code="en-US" />
          <!--==================================================-->
          <!--=  Patient Registration                          =-->
          <!--==================================================-->
          <recordTarget>
            <patientRole>
              <!--==================================================-->
              <!--=  Patient Registration                          =-->
              <!--==================================================-->
              <id extension="58374" root="2.16.840.1.113883.4.572" />
              <addr use="HP">
                <streetAddressLine>No Address</streetAddressLine>
                <city>No City</city>
                <state>No State</state>
                <postalCode>No Zip</postalCode>
                <country>US</country>
              </addr>
              <telecom use="HP" value="tel:+1-000-000-0000" />
              <patient>
                <name>
                  <given>BRANDON</given>
                  <family>TEST</family>
                </name>
                <administrativeGenderCode code="M" displayName="Male" codeSystemName="HL7 AdministrativeGenderCodes" codeSystem="2.16.840.1.113883.5.1" />
                <birthTime value="19750202" />
                <maritalStatusCode codeSystemName="HL7 MaritalStatusCode" codeSystem="2.16.840.1.113883.5.2" code="S" displayName="SINGLE" />
              </patient>
            </patientRole>
          </recordTarget>
          <!--==================================================-->
          <!--=  Record Author - Physician                     =-->
          <!--==================================================-->
          <author>
            <time value="20190905" />
            <assignedAuthor>
              <id extension="1053370288" root="2.16.840.1.113883.4.6" />
              <addr>
                <streetAddressLine>4000 Redmond Pkwy</streetAddressLine>
                <city>HIGH POINT</city>
                <state>NC</state>
                <postalCode>27265</postalCode>
              </addr>
              <telecom use="WP" value="tel:+1-866-874-6339" />
              <assignedPerson>
                <name>
                  <prefix>Dr.</prefix>
                  <given>Dave</given>
                  <family>Smith</family>
                </name>
              </assignedPerson>
              <representedOrganization>
                <name>CLINIC</name>
              </representedOrganization>
            </assignedAuthor>
          </author>
          <custodian>
            <assignedCustodian>
              <representedCustodianOrganization>
                <id root="2.16.840.1.113883.19.5" />
                <name>CLINIC</name>
                <telecom value="3368822800" />
                <addr>
                  <streetAddressLine>2472 Rocky Place</streetAddressLine>
                  <city>BEAVERTON</city>
                  <state>OR</state>
                  <postalCode>97006</postalCode>
                </addr>
              </representedCustodianOrganization>
            </assignedCustodian>
          </custodian>
          <!--==================================================-->
          <!--=  Clinical Data                                 =-->
          <!--==================================================-->
          <component>
            <structuredBody>
              <!--==================================================-->
              <!--=  Allergies, Adverse Reactions, Alerts          =-->
              <!--==================================================-->
              <component>
                <section>
                  <templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01" />
                  <templateId root="2.16.840.1.113883.10.20.22.2.6.1" />
                  <code code="48765-2" displayName="Allergies" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" />
                  <title>Allergies and Adverse Reactions</title>
                  <text>
                    <table border="1" width="100%">
                      <thead>
                        <tr>
                          <th>Code</th>
                          <th>CodeSystem</th>
                          <th>Allergy Name</th>
                          <th>Reaction</th>
                          <th>Severity</th>
                          <th>Timing Information</th>
                          <th>Concern Status</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr ID="allergy_1">
                          <td>NA</td>
                          <td>RxNorm</td>
                          <td>NKDA</td>
                          <td>NA (snomed: 1829003)</td>
                          <td>NA</td>
                          <td>Start Date---/--/----</td>
                          <td>Active</td>
                        </tr>
                        <tr ID="allergy_2">
                          <td>NA</td>
                          <td>RxNorm</td>
                          <td>nut mix</td>
                          <td>rash (snomed: 112625008)</td>
                          <td>Mild</td>
                          <td>Start Date-01/14/2010</td>
                          <td>Historical</td>
                        </tr>
                      </tbody>
                    </table>
                  </text>
                  <entry typeCode="DRIV">
                    <act classCode="ACT" moodCode="EVN">
                      <templateId root="2.16.840.1.113883.10.20.22.4.30" extension="2015-08-01" />
                      <templateId root="2.16.840.1.113883.10.20.22.4.30" />
                      <id root="2.16.840.1.113883.4.6" extension="31807" />
                      <code code="48765-2" displayName="Allergies, Adverse Reactions, Alerts" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" />
                      <statusCode code="active" />
                      <effectiveTime>
                        <low nullFlavor="UNK" />
                      </effectiveTime>
                      <entryRelationship typeCode="SUBJ" inversionInd="false">
                        <observation classCode="OBS" moodCode="EVN">
                          <templateId root="2.16.840.1.113883.10.20.22.4.7" extension="2014-06-09" />
                          <templateId root="2.16.840.1.113883.10.20.22.4.7" />
                          <id root="2.16.840.1.113883.4.6" />
                          <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" />
                          <statusCode code="completed" />
                          <effectiveTime>
                            <low nullFlavor="UNK" />
                            <high nullFlavor="UNK" />
                          </effectiveTime>
                          <value xsi:type="CD" code="419511003" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Propensity to adverse reaction">
                            <originalText>
                              <reference value="#allergy_1" />
                            </originalText>
                          </value>
                          <participant typeCode="CSM">
                            <participantRole classCode="MANU">
                              <playingEntity classCode="MMAT">
                                <code nullFlavor="NA">
                                  <originalText>
                                    <reference value="#allergy_1" />
                                  </originalText>
                                </code>
                              </playingEntity>
                            </participantRole>
                          </participant>
                          <entryRelationship typeCode="MFST" inversionInd="true">
                            <observation classCode="OBS" moodCode="EVN">
                              <templateId root="2.16.840.1.113883.10.20.22.4.9" extension="2014-06-09" />
                              <templateId root="2.16.840.1.113883.10.20.22.4.9" />
                              <id root="2.16.840.1.113883.4.6" />
                              <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" />
                              <statusCode code="completed" />
                              <value code="1829003" displayName="NA" xsi:type="CD" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" />
                            </observation>
                          </entryRelationship>
                        </observation>
                      </entryRelationship>
                    </act>
                  </entry>
                  <entry typeCode="DRIV">
                    <act classCode="ACT" moodCode="EVN">
                      <templateId root="2.16.840.1.113883.10.20.22.4.30" extension="2015-08-01" />
                      <templateId root="2.16.840.1.113883.10.20.22.4.30" />
                      <id root="2.16.840.1.113883.4.6" extension="31806" />
                      <code code="48765-2" displayName="Allergies, Adverse Reactions, Alerts" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" />
                      <statusCode code="active" />
                      <effectiveTime>
                        <low value="20100114" />
                      </effectiveTime>
                      <entryRelationship typeCode="SUBJ" inversionInd="false">
                        <observation classCode="OBS" moodCode="EVN">
                          <templateId root="2.16.840.1.113883.10.20.22.4.7" extension="2014-06-09" />
                          <templateId root="2.16.840.1.113883.10.20.22.4.7" />
                          <id root="2.16.840.1.113883.4.6" />
                          <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" />
                          <statusCode code="completed" />
                          <effectiveTime>
                            <low nullFlavor="UNK" />
                            <high nullFlavor="UNK" />
                          </effectiveTime>
                          <value xsi:type="CD" code="419511003" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Propensity to adverse reaction">
                            <originalText>
                              <reference value="#allergy_2" />
                            </originalText>
                          </value>
                          <participant typeCode="CSM">
                            <participantRole classCode="MANU">
                              <playingEntity classCode="MMAT">
                                <code nullFlavor="NA">
                                  <originalText>
                                    <reference value="#allergy_2" />
                                  </originalText>
                                </code>
                              </playingEntity>
                            </participantRole>
                          </participant>
                          <entryRelationship typeCode="MFST" inversionInd="true">
                            <observation classCode="OBS" moodCode="EVN">
                              <templateId root="2.16.840.1.113883.10.20.22.4.9" extension="2014-06-09" />
                              <templateId root="2.16.840.1.113883.10.20.22.4.9" />
                              <id root="2.16.840.1.113883.4.6" />
                              <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" />
                              <statusCode code="completed" />
                              <value code="112625008" displayName="rash" xsi:type="CD" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" />
                            </observation>
                          </entryRelationship>
                        </observation>
                      </entryRelationship>
                    </act>
                  </entry>
                </section>
              </component>
            </structuredBody>
          </component>
        </ClinicalDocument>
      </GetPatientAllergyResult>
      <sStatusMessage>TEST</sStatusMessage>
    </GetPatientAllergyResponse>
  </soap:Body>
</soap:Envelope>